CSS HTML TUTORIAL

CSS Lesson 2

There are hundreds of different styles you can use when programming in css. In this lesson we are going to familiarize ourselves with some of the more essential ones.

Styles are called like this, "font-size: 20px;" or "float: center;". You put the specific family of styles first, and then specify a quantity or give a value for that style after a colon. You must also end every line with a semi colon.

Below are images which show how the mentioned styles are used.

Styles used to style text can be seen in the below image

Styles used to style boxes can be seen in the below image

Homework:

On a new or existing HTML and css file, use all of the styles mentioned above in this lesson to create a simple webpage. Again, feel free to use W3Schools if you get stuck.

Home