0
Use of class attribute
3 ответов
+ 1
It's for styling with css
+ 1
It's used as reference point to style it in css
Example:
In html file:
<p class="example"> Random text</p>
In css file:
.example {
color: white;
}
This will change font change to white only in the paragraph specified by class attribute.
0
thanks