Class 5 Coding Demos: Stylesheets and Basic CSS

Please see below for code that we discussed last class. Read the comments to understand the key information about the code that is presented.

How to Add Styles

In class, we covered 3 ways to add CSS to your web pages. See example:

Basic CSS

We learned a bunch of CSS properties that you should get familiar with. Review them in the files below. As before, consult the comments in the code for explanations as to how the code is working.

CSS File and HTML File it applies to: