BLOG

Learn CSS

Link a CSS stylesheet to your HTML Document

Lets have some fun creating your first stylesheet so it can talk to your HTML documents.

Lets start off be creating a CSS directoy inside your project file

Now you have done that, lets create a new file called style.css

Here is the most important function we need to execute.. "link rel="stylesheet" href="style.css"/ make sure you open and close it with tags to make sure it is called.


image of the HTML code example created based on the instructions

If your HTML looks like the above you are halfway there.

I want you to add your own styling font-size: ect and hit refresh...

WOW you are on your way to becoming a little tech guru!

image of the CSS code example created based on the instructions

Well Done!

x