To make your assignment easier
To make your assignment easier
! We need to create a simple HTML page named home.html linked with a CSS named mystyle.css.
Step 2
We open the HTML editor (e.g. Notepad++, Sublime etc.)
Step 3
We visit https://www.w3schools.com/html/html_css.asp and we copy the code below to a new file in our
editor.
Step 4
We visit https://www.w3schools.com/html/html_css.asp
We create a new empty file in our editor and write the code below.
Congratulations! We have now created a simple html page linked with an external CSS
HTML part
We visit https://www.w3schools.com/howto/howto_css_style_header.asp
We add the code below in our home.html page WITHIN the <body> and </body> html tags. Usually, we
place right under the <body> tag as we want to have the header at the top of our page.
CSS Part
We add the code below to the bottom of our mystyle.css file and save it.
Congratulations! We have now created a simple html page linked with an external CSS with a header.
The idea is that later, whatever we put under the <!—Page Content --> will be aligned in the center of the
page.
We now add the following code to the bottom of our mystyle.css file and save it.
Generic Form
<a href="url">link text</a>
Link to w3schools
<a href="https://www.w3schools.com/">Visit W3Schools.com!</a>
<a href=”home.html”>Home</a>
After we do that. We create 2 identical copies of the home.html file and rename them to about_us.html and
contact_us.html.