0

Use of class attribute

21st Jan 2019, 10:39 AM
Aditya
Aditya - avatar
3 ответов
+ 1
It's for styling with css
21st Jan 2019, 10:42 AM
Gordon
Gordon - avatar
+ 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.
21st Jan 2019, 9:43 PM
Daniel Sosinski
Daniel Sosinski - avatar
0
thanks
15th Apr 2020, 10:01 AM
leul
leul - avatar