What is <p class='section'> or <p class='quotes'> ? | Sololearn: Learn to code for FREE!

+1

What is <p class='section'> or <p class='quotes'> ?

2/1/2018 11:52:17 AM

Hemant Kumar

1 Answer

New Answer

+4

You can give CSS properties to an element by declaring a class in CSS and writing it in the class. Like: <style> .hello { font-family: Times New Roman; } </style> Then in HTML part: <p class = "hello"> some text </p> The 'some text ' would now appear in Times new Roman.