JavaScript Treehouse Club - MASH MASH - HTML MASH Introduction with HTML

Dean Cerda
Dean Cerda
1,189 Points

What's the purpose of the class attribute and is it necessary?

Just noticed this, not sure if it is gone over in later lessons

1 Answer

Steven Parker
Steven Parker
170,474 Points

I'm sure it's discussed more later (in other courses if not this one), but the short explanation is that it's not necessary but extremely helpful for identifying and styling HTML elements together.

Dean Cerda
Dean Cerda
1,189 Points

Ok that's good to know! Thanks for your answer!