0
Is it possible to use elements without selecting them in html?
I want to code easily
1 Odpowiedź
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