Sample Video Frame

Created by Zed A. Shaw Updated 2024-11-15 13:50:32
 

05: Important Attributes

You'll learn more about CSS in the next module, but in this lesson I'm going to give you a very short introduction to the four main attributes that CSS uses to connect to your HTML. Using these four you can specify how your HTML looks using CSS.

Warm-up

In the previous exercise you created a global.css file to style your HTML, and added a single "rule" to it. Make sure that your global.css is working by confirming that the text in links is very large. Another test is to do this:

body {
  background-color: red;
}

This will turn your page an ugly red, so if you don't see that then it's not working. Confirm the file is in the same directory as your .html, and confirm you spelled everything right. Once it's working get rid of this ugly red background.

Previous Lesson Next Lesson

Register for Learn JavaScript the Hard Way

Register today for the course and get the all currently available videos and lessons, plus all future modules for no extra charge.