HTML is a markup language for describing the structure of web pages. HTML is made out of elements which are marked using a start tag (<title>) and end tag (</title>). Between the start and end tags you can put text and other elements. The start tags may contain attributes (<img src="picture.jpg">). For some elements the end tag is not needed.

Minimal HTML page

The following code shows the minimal structure of a HTML page.

Create a folder called MyAwesomeSite on your computer’s desktop. This will be your project folder where to put all the files you create in this tutorial.

Copy the following HTML code into your text editor and save it as about.html into your project folder. Then open the file in your web browser.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>This is the page title</title>

<p>This is a <u>p</u>aragraph of text</p>


It should look like this:

Minimal HTML page

Basic HTML elements

Edit the page you just created to say a few things about yourself.

Create a heading with <h1>some text</h1>, one or more paragraphs with <p>some text</p> and a picture using <img src="picture.jpg" alt="alternative text"> (if you don’t have a picture of yourself, you can use this one). All visible elements like these will go between <body> and </body>. Also change the page title.

You can learn more about <h1>, <p>, <img> and all other HTML elements from the HTML element reference at MDN Web Docs.

Basic HTML Elements

Proceed to the next chapter