Course Content
HTML Basics
In this lesson, you will learn how to make your first HTML webpage using a few lines of code.
0/1
Headings & Paragraphs
In this lesson, you will learn how to add headings and paragraphs to your HTML webpages.
0/1
Style: Color, Font, & Size
In this lesson you will learn how to change the color, font family, and size of text.
0/1
Text Formatting
In this lesson, you will learn how to format text.
0/1
Comments
In this lesson, you will learn how to add comments in your code.
0/1
Background Colors
In this lesson, you will learn how to add a color to the background of your HTML webpage.
0/1
Hyperlinks
In this lesson, you will learn how to add hyperlinks to your HTML webpages.
0/1
Images
In this lesson, you will learn how to add images to your HTML webpages.
0/1
Styling Webpages
In this lesson, you will learn how to use stylesheets.
0/1
Course Project
The project is good for you to test your knowledge.
0/1
In this lesson, you will learn how to style webpages.

Styling webpages can be either adding a background color to your webpage or changing the color, font family, or size of the text and more. In this lesson, we will style webpages using a different way, not the same way that we used in the previous lessons.

The first way is to use the <style>…</style> tags. They are placed between the <head>…</head> tags. Write the following code in an empty Wordpad:

You should see the following in your web browser:

Now, we will use another way to style webpages. Mainly, we will use something called CSS. CSS stands for Cascading Style Sheets. You can also use multiple style sheets for your webpages. Write the following code in an empty Wordpad:

The path of the stylesheet is written between the href=””.

 

Now, create a new Wordpad file and save it with the “.css” extension. Add the following code to your CSS file:

You should see the following webpage:

Note: All CSS files must end with the “.css” extension.

wpChatIcon
wpChatIcon