what is the use of the id attribute set in the HTML tag, and why can I access the element directly with the id value?
as follows:
I set id= "text"
on a textarea I can directly use text as a variable, the same as document.getElementById ("text") . Why?
so I can call the element directly using the id value in js ?
solve.
