Create a file called
index.html and a file called
index.html, add a
doctype and an
<html> element, add a
<head> element and a
<head> element, add a
<title> element and put the title of the page inside it.
<body> element, add a
<h1> element and put the main heading of the page inside it.
<body> element, after the
<h1> element, add a
<p> element and put a few sentences inside it.
<p> element, surround some words in an
href attribute to the
<a> opening tag, and make its value your favorite website. Don't forget the
Include the CSS file in the
<head> of the HTML file by using a
<link> element. Add a
href attribute and set its value to the filename of your CSS file. Add a
rel attribute and set its value to
Create a CSS rule:
Make sure to save both files!
classto an element and write a CSS rule that selects that class.
We didn't exactly cover the next three in class. You'll have to Google up how to do them: