Lesson: HTML5 and CSS
Style Multiple Elements with a CSS Class
Remember that you can attach classes to HTML elements by using
class="your-class-here" within the relevant element's opening tag.
Remember that CSS class selectors require a period at the beginning like this:
But also remember that class declarations don't use a period, like this:
red-text class to your
The content on this page is licensed under Attribution-ShareAlike 4.0 International. Original authors: freeCodeCamp, the content was modified.