Classes are reusable styles that can be added to HTML elements.
Here's an example CSS class declaration:
You can see that we've created a CSS class calledblue-textwithin the<style>tag. You can apply a class to an HTML element like this:<h2 class="blue-text">CatPhotoApp</h2>. Note that in your CSSstyleelement, class names start with a period. In your HTML elements' class attribute, the class name does not include the period.
Inside yourstyleelement, change theh2selector to.red-textand update the color's value frombluetored.
Give yourh2element theclassattribute with a value ofred-text.