Coggle requires JavaScript to display documents.
const heading = document.querySelector('h1');
innerText
> heading.innerText
> 'WEAR/IT/WELL'
> heading.innerText = 'LOLOLOL'
textContent
script
style
> heading.innerText = '<i>LOLOLOL</i>'
innerHTML
> heading.innerHTML = '<i>LOLOLOL</i>'
image.src = './images/theBenefits.jpg'
src
image.setAttribute('src', './images/theBenefits.jpg');'
const image = document.querySelector('.blurb img');
> image.src
> 'http://127.0.0.1:8080/images/lolli_icon.png'
> image.getAttribute('src')
> './images/lolli_icon.png'
> heading.style
> heading.style.fontWeight === ''
> true
#headingGroup h1 { font-weight: 100; font-size: 4rem; }
font-weight
fontWeight
> CSSStyleDeclaration {accentColor: '', additiveSymbols: '', alignContent: '', alignItems: '', alignSelf: '', …}
> heading.style.fontWeight = '200'
> <h1 class="display-2" style="font-weight: 200;"> WEAR<span>/</span>IT<span>/</span>WELL</h1>
> heading
> <h1 class="display-2""> WEAR<span>/</span>IT<span>/</span>WELL</h1>
.purple { color: purple; }
> heading.classList
> DOMTokenList ['display-2', value: 'display-2']
> heading.classList.add('purple')
> DOMTokenList(2) ['display-2', 'purple', value: 'display-2 purple']
remove
> heading.classList.toggle('purple')