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:
- Opening tag: e.g.,
<p> - Content: the text or nested elements inside
- 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
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
1. What is the primary job of HTML on a web page?
2. In <a href="/courses">Courses</a>, what is href?
Finished this lesson?
Your progress is saved locally in your browser, no account needed.