Class attribute


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.


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.


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