Learn CSS | Lesson 1 | Making A File

 Learn CSS

 Part 1

Hi I am teaching you HTML already but it is important to learn CSS too as CSS is needed for the style of the document, remember in part 1 of HTML how I told you that HTML is the layout. Now CSS is the style of the layout. So lets start with the basics, lets learn how to make a CSS file. You can do this in Notepad too don't worry, so first create a new Notepad file and name it "style.css" and save it as UTF-8. Then make a HTML file called "index.html". In the index.html paste this code:
<head>
<link rel="stylesheet" href="style.css">
</head>
Make sure both the files are in the same folder, this basically connects the HTML file to the CSS file. There are 2 more ways to do this, instead of linking them you can straight code HTML and CSS in the same file. To do so make a basic HTML document, then in the end of the body section before closing its tag paste this:
<style>
</style>
Now in between these you can write CSS code or you can link another stylesheet like I did. I forgot to tell you but CSS stands for Cascading Style Sheets. I will meet you on the next one where we learn basics of CSS

Comments

Popular posts from this blog

how to rank number one on google

The Complete JavaScript Course (2022) From Zero to Expert!