0

<div id="intro"> <p class="first">This is a <em> paragraph.</em></p> <p> This is the second paragraph. </p> </div> <p cl

why did we use second class here.

16th Mar 2017, 8:43 PM
jyotiprakash mahto (Jpp)
jyotiprakash mahto (Jpp) - avatar
2 Respostas
+ 1
the first is id not class .because if you want to refer to the paragraph in java script or to style it in css without styling the whole div if you want
17th Mar 2017, 11:52 AM
YAZAN AHMED
YAZAN AHMED - avatar
+ 1
first id is for all the code in div.. but seccond class is for p
17th Mar 2017, 11:59 AM
NedA
NedA - avatar