Skip to content
Guest
Learn HTML · Course Syllabus Show lessons
Foundations · 6 min read · Beginner

Welcome to HTML

Understand how HTML elements, attributes, and document structure work together to build every web page.

What you'll learn

  • Recognize HTML tags, elements, and attributes
  • Write a valid heading, paragraph, link, and list
  • Modify live HTML and see instant browser output

HTML (HyperText Markup Language) gives a web page its meaning and structure. Every site you visit (from simple blogs to complex web apps)starts with HTML.

Anatomy of an HTML Element

Most HTML elements have three parts:

  1. Opening tag: e.g., <p>
  2. Content: the text or nested elements inside
  3. Closing tag: e.g., </p>
<a href="https://devpath.dev">Start learning</a>

In the example above, href is an attribute that tells the browser where the link points.

Try It Yourself

Your First HTML Page
Live Result

Heading Hierarchy Matters

Use <h1> for the main page title, <h2> for major sections, and <h3> for subsections. Never pick a heading tag just because you like its default font size, use CSS for visual sizing.

Check Your Understanding

Score: 0 / 2

1. What is the primary job of HTML on a web page?

2. In <a href="/courses">Courses</a>, what is href?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind