Code skill Using CSS classes and the class attribute

In this piece of code you can see how to apply CSS using the class attribute. This time you add CSS to your page by adding the <style> tag to your head. You then create a name for your CSS class and then add all the CSS properties and values you want to apply to an element. Then in the <body> of your code, you just use the CSS class attribute and set its value to the name of the CSS class.