0

With which tag I can use "class" attribute and what would be the value of this attribute??

11th Aug 2019, 6:24 PM
Murtuza Murad
Murtuza Murad - avatar
2 Respuestas
+ 13
The "class" attribute is simply for adding a specific name to an element. It's helpful if you don't just want to style an element generally. You can call your class name anything as long as you remember it. https://www.geeksforgeeks.org/html-class-attribute/
11th Aug 2019, 6:42 PM
Oma
Oma - avatar
+ 2
You can use the attribute in any tag (which is part of "body"). You can use any name as it's value. it basically says. Format this tag (it's contents) with the css styles under that class name.
11th Aug 2019, 6:40 PM
storm
storm - avatar