+ 2

What is the "id" of new paragraph ?

28th Mar 2018, 4:36 AM
Viryl15
Viryl15 - avatar
3 Respostas
+ 1
I talk about DOM
28th Mar 2018, 5:35 AM
Viryl15
Viryl15 - avatar
0
I guess you are talking about HTML and the <p> tag. It does not have any ID until you specify it with an id-attribute like this: <p id="myPID">my P text</p> You can then use it in CSS like: #myPID{ baclground-color: green; }
28th Mar 2018, 5:09 AM
***
*** - avatar
0
That is what i was talking about too. https://www.w3schools.com/js/js_htmldom_nodes.asp
28th Mar 2018, 5:44 AM
***
*** - avatar