0
Is it possible to use elements without selecting them in html?
I want to code easily
1 Answer
0
no, except for selecting tags as <p> then itâs just var p = document.getElementsByTag("p");
but itâs in an array if you select by tag. so you have to do like p[0]; to acces the first paragraph