+ 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.
1st Feb 2018, 12:00 PM
Harsh
Harsh - avatar