JSFiddle - React, Tailwind, and code Playground
by SwampFall
HTML
<input value="Insert text here?" id='input'/>
<button id='button'>
Insert text here
</button>
<div id='output'>
output will be here :3
</div>
<b>hi</b>
CSS
document.getElementById('smth here') <- you need smth like this :3
hmm a different category would be a class
so you could ask me to give you the "div" element as in the tag name
but the problem is that there can be more than 1 div elements
so we actually use the ID to select a single element :3
so ID is used to be able to select a single element
do you think refreshing would help?
well 'id' is the attribute name, 'output' is the ID in this case (it's the value of the attribute id)
so do you wanna try to select the output in javascript? :3
kinda ye :3 so you use "output" to select that element
so 'output' is the ID of that element