Lesson 1: Introduction to HTML.

HYPERLINK CODE ACADEMY / HTML COURSE

Lesson 01 — Introduction to HTML

Before you build a website, you need to understand what it's made of. Let's start with HTML.

01. What is HTML?

HTML stands for HyperText Markup Language. It is the standard language used to structure content on webpages.

Think of a website like a house:

  • HTML is the structure — the walls, doors and rooms.
  • CSS is the appearance — the paint, furniture and decorations.
  • JavaScript is the interaction — the lights, switches and moving parts.
Remember: HTML is a markup language, not a programming language.

02. Your first HTML document

Most basic HTML pages start with a structure like this:

<!DOCTYPE html>
<html>
  <head>
    <title>My First Website</title>
  </head>

  <body>
    <h1>Hello, world!</h1>
    <p>This is my first webpage.</p>
  </body>
</html>

03. Understanding the code

<!DOCTYPE html>

Tells the browser that this document uses modern HTML.

<html>

The root element. Everything on the page lives inside it.

<head>

Contains information about the webpage, such as its title and metadata.

<title>

Sets the name displayed in the browser tab.

<body>

Contains the content visitors actually see.

<h1>

Creates a main heading.

<p>

Creates a paragraph of text.

04. Important: HTML elements

Most HTML elements have an opening tag, content, and a closing tag.

<p>Hello there!</p>

<p> opens the paragraph.

Hello there! is the content.

</p> closes the paragraph.

Some elements, like <img> and <br>, do not need a separate closing tag.

05. Test your knowledge

Which HTML element creates a paragraph?

⚙