Here is a great tutorial all about HTML. Do all the sections up to the end of HTML Paragraphs
.
While you are doing the tutorial, make sure that you make use of the Try it yourself
button. If you want to learn to code then it’s important to play with the code.
Understanding is critical for coders. Before you move forward, it’s important that you understand a few things. Can you answer the following questions for yourself?
<h1>
and <h2>
? What do these represent?If you are unsure of anything then go back to the tutorial, or spend some time on Google.
You can also experiment a bit by writing HTML code and seeing what it does. Experimentation is one of the best ways to master code!
Your mission is to make a website of your very own. It will just be one page for now.
It’s essential that you follow the instructions exactly, in the next step you will be deploying your website to the web. It will need to do exactly the right thing!
index.html
It is important to name the file exactly right! We’ll be putting it on the Internet in the next step.
If you want to you can just edit the html file we made in the last step. So long as the file name is correct then we are good.
Please note that index.html
is NOT the same as Index.html
. Capital letters matter a lot in code. Please be extra careful about naming your files with the right case!
You’ll be adding a bunch of content to your html file. Please make sure that you are meeting all the requirements below:
<head>
elementYou might not know what a head
tag does just yet. You can learn about it here.
Write some HTML code that meets the following requirements:
<head>
element<title>
element inside the head. Experiment a bit and make sure you know what the title does. You can give your page whatever title text you want. Eg: <title>First website</title>
.<meta>
element that sets the charset to UTF-8
. It should look like this <meta charset="UTF-8">
.<body>
Write some HTML code that meets the following requirements:
<h1>
heading<h2>
headingsPlease make sure that your code is clean and valid. Here are a few things to look out for:
In the next step, we’ll be getting your website online. So at this point, it’s VERY IMPORTANT that your code is up to scratch. If you missed any steps and host a website that doesn’t meet the requirements then you’ll need to come back here and fix everything.
Here are some things to check:
title
element inside the head
?meta
element inside the head
? And did you set the charset correctly?body
element? It should be outside the headh1
element inside the body
?h2
element inside the body
?