HTML for Beginners

Learn how websites are made — by ComputersBlog

HTML Basics — Beginner Course

Welcome to HTML for Beginners. Read each lesson carefully, then answer the quiz. Use the editor on the right to experiment.


Lesson 1: What is HTML?

HTML stands for HyperText Markup Language. It is used to create the structure of websites.

HTML is not programming. It tells the browser what content is.

Quiz 1

What is HTML used for?




Lesson 2: HTML Tags

HTML uses tags. Tags wrap content.

<p>Hello</p>

Most tags have an opening and closing tag.

Quiz 2

Which tag creates a paragraph?




Lesson 3: Headings

Headings show importance. Use only one <h1> per page.


<h1>Main Title</h1>
<h2>Section</h2>
<h3>Sub-section</h3>

Quiz 3

Which heading is the biggest?




Lesson 4: Paragraphs & Text

Paragraphs are created using <p>.

<p>This is text.</p>

Formatting text:


<strong>Bold</strong>
<em>Italic</em>

Quiz 4

Which tag makes text bold?




Lesson 5: Links

Links are created using the <a> tag.


<a href="https://example.com">Visit site</a>

Quiz 5

What does href do?




Lesson 6: Images

Images use the <img> tag.


<img src="image.jpg" alt="Description">

The alt text is important.

Quiz 6

Why is alt important?




Lesson 7: Lists


<ul>
  <li>HTML</li>
</ul>

<ol>
  <li>Step one</li>
</ol>

Quiz 7

Which list shows numbers?




Lesson 8: Page Structure


<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>

Quiz 8

Where does visible content go?




Final Practice

Build a page with:

If something breaks, fix it. That’s how real developers learn 💪