HTML (HyperText Markup Language) is the foundation of every web page. It uses tags to describe headings, paragraphs, links, images, and more so the browser knows how to structure content.
What is HTML in this tutorial?
This HTML tutorial starts with the smallest useful page: a doctype, an <html> root, <head> metadata, and a <body> with visible content. You will learn tags, elements, and attributes—the vocabulary you reuse on every later HTML page.
Why start an HTML tutorial with the basics?
CSS styles pages and JavaScript adds behavior, but both attach to HTML. If you understand the document skeleton and a handful of tags, you can already save a .html file, open it in a browser, and publish real content.
What will you build on this page?
A complete beginner page: headings, paragraphs, lists, a link, and proper charset / viewport metadata. Practice each piece in the Try It editor before moving on to HTML Editors.
Markup, not a program.
You do not compile HTML. Save a .html file and open it in any browser—no server required for local practice.
HTML + CSS + JavaScript.
Think of HTML as the skeleton, CSS as the look, and JavaScript as the behavior. This tutorial focuses on the skeleton first.
Learn structure before styling.
Do not pick heading levels for font size, or use div for everything. Match tags to meaning; style with CSS later.
A complete beginner page combining everything from this HTML tutorial lesson:
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to My Web Page</h1>
<p>This is a basic HTML example.</p>
<h2>Things I Like:</h2>
<ul>
<li>Coding</li>
<li>Web Development</li>
<li>Coffee</li>
</ul>
<p>Visit my <a href="https://example.com">website</a> for more information.</p>
</body>
</html>
Full skeleton with charset and viewport for real pages.
Structured content with h1, h2, p, and ul.
A link shows how navigation starts in HTML.
Save as index.html and open it locally—you have a publishable page.
Edge Cases & Pitfalls
Beginner HTML tutorial mistakes that break layout, accessibility, or standards mode.
doctype
Missing <!DOCTYPE html>
Browsers may use quirks mode. Always put the doctype on the first line.
h1
Multiple h1 tags for styling
Use one main title; change size with CSS, not extra h1 elements.
close
Skipped closing tags
Always close normal elements like p, li, and a. Void tags are the exception.
alt
Images without alt
Meaningful images need descriptive alt. Screen readers and broken images rely on it.
div
div soup
Prefer header, main, nav, and footer when they match the content.
css
Presentation in HTML
Avoid inline color/font habits for learning. Structure with HTML; style with CSS in the next lessons.
Compatibility
Browser Support
Core HTML elements—headings, paragraphs, lists, links, and images—have been supported in every browser for decades. The HTML5 doctype and meta tags work in all modern browsers.
✓ Baseline · Widely available
Basic HTML elements
Every browser renders standard HTML tags the same way. You do not need polyfills for the fundamentals in this tutorial.
100%core tag support
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
Basic HTML elementsUniversal
Bottom line: Write HTML once; it works in Chrome, Firefox, Safari, Edge, and mobile browsers.
Remember
Key Takeaways
HTML structures content; it is the first step of this HTML tutorial.
DOCTYPE + html + head + body is the document skeleton.
Tags, elements, attributes are the three words you will use constantly.
Practice with Try It, then continue to editors, tags, and attributes.
One line: Write a valid HTML5 skeleton, put meaningful tags in body, and open the file in a browser—that is your first web page.
Frequently Asked Questions
HTML (HyperText Markup Language) is the standard language for creating web pages. It uses tags to mark up content—headings, paragraphs, links, images—so browsers know how to display each part of the page.
No. HTML is a markup language—it describes structure and meaning, not logic. Programming languages like JavaScript or Python run instructions; HTML tells the browser what each piece of content is.
Start here on HTML Basic. Learn the document skeleton, a few tags, and attributes. Next, pick an editor, then explore tags, attributes, comments, and how to add CSS.
No. You can write HTML in any text editor and save the file with a .html extension. Dedicated code editors add syntax highlighting and preview, which makes learning easier—but they are optional.
A tag is the markup syntax, such as <p> or </p>. An element is the complete unit: opening tag, content, and closing tag—or a void tag like <img>. In everyday speech, people often use both words to mean the same thing.
It tells the browser this document follows the HTML5 standard. Always put it on the first line so the browser renders your page in standards mode instead of outdated compatibility quirks.
Save your file as something like index.html, then double-click it or drag it into a browser window. You can also use an editor with live preview, or this site’s Try It editor, then upload the file to a web host when you are ready to share it online.