Class attribute


#1

I’m have an hard time understanding when to use the class attribute. I have seen it used with the div tag. I have seen it used with an a tag. I have also seen it used by itself. Can you explain what a class attribute is and explain some of its uses.


#2

Classes can be applied to any type of tag. They are often used to identify a tag (or several tags) for the purposes of styling or scripting.

https://www.w3schools.com/TAGS/att_global_class.asp


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.