Use a CSS Class to Style an Element, freeCodeCamp review html & css

Lesson Summary

This challenge introduces CSS classes. A class allows you to specify which elements you want to receive certain styles. This comes in handy when you do not want to apply the same style to like elements. For example, you might want to apply a style to your first heading tag and to your first paragraph tag. And a different style to your second heading tag, and paragraph tag. You can give the first 2 tags the same class which contains the specific style you want applied. While the next heading and paragraph can have a different style applied through their specific class. Class names are created by you, so give them good ones.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required