0
With which tag I can use "class" attribute and what would be the value of this attribute??
2 Réponses
+ 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/
+ 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.