About Lesson
The class is an attribute that specifies one or more class names for an HTML element. The class attribute can be used on any HTML element.
The class name can be used by CSS and JavaScript to perform certain tasks for elements with the specified class name.
Syntax:
<p class=”city”>Paris is the capital of France</p>
Exercise Files
No Attachment Found
Join the conversation