<div id="intro"> <p class="first">This is a <em> paragraph.</em></p> <p> This is the second paragraph. </p> </div> <p cl | Sololearn: Learn to code for FREE!

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.

3/16/2017 8:43:31 PM

jyotiprakash mahto (Jpp)

2 Answers

New Answer

+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

+1

first id is for all the code in div.. but seccond class is for p