October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

What Is HTML? A Beginner’s Video Tutorial

HTML structures and gives meaning to web content. Learn how elements, tags, and attributes fit together in a simple page, and where to start practicing.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

HTML, or HyperText Markup Language, is the language used to define the structure and meaning of content on a web page. It tells a browser which parts are headings, paragraphs, links, images, lists, forms, and other elements. CSS generally controls how those parts look, while JavaScript adds behavior.

In this tutorial, you’ll see how an HTML document is put together, what tags and elements mean, and why choosing meaningful structure matters.

What HTML does on a website

Think of HTML as labels and relationships for a document. It identifies a title as a heading, a group of sentences as a paragraph, and a destination as a link. A browser reads that structure to present the page; assistive technologies and other tools can use it to understand and navigate the content too.

HTML is one part of a web page, not the whole thing:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option
Technology Primary role
HTML Structures content and conveys its meaning
CSS Controls presentation, such as layout, colors, and typography
JavaScript Adds behavior and interaction

The boundaries can overlap in real projects, but this division is a useful starting point. MDN’s HTML overview explains HTML’s role and points to related web technologies.

What an HTML page looks like

Here is a small complete example. Save it as index.html and open it in a browser to see the page.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>A Small HTML Page</title>
  </head>
  <body>
    <header>
      <h1>A Small HTML Page</h1>
    </header>
    <main>
      <p>HTML gives this content structure and meaning.</p>
      <p>Visit <a href="https://example.com/">an example page</a>.</p>
      <ul>
        <li>A heading</li>
        <li>A paragraph</li>
      </ul>
    </main>
    <footer><p>End of page.</p></footer>
  </body>
</html>

The document’s main parts

  • <!doctype html> identifies the document as HTML.
  • <html lang="en"> contains the page and declares its language.
  • <head> contains information about the document, including character encoding, viewport settings, and its title. This information is not the page’s main visible content.
  • <body> contains the content displayed as the page.
  • <header>, <main>, and <footer> identify meaningful regions of the page.

Tags, elements, and attributes

A tag is the markup spelling inside angle brackets, such as <p>. An element is the structured unit represented in the document: in <p>Hello.</p>, the paragraph element includes its opening tag, content, and closing tag.

Many elements have an opening and closing tag, but some, such as <img>, do not wrap text and have no closing tag. Attributes add information to an element. For example, href supplies a link destination in <a href="https://example.com/">Visit</a>; the visible word “Visit” is the link text.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Lowercase tag names are the usual authoring convention. HTML tag names are case-insensitive, but consistent lowercase spelling is easier to read.

Common elements to learn first

  • <h1> to <h6> mark headings at different levels. Choose levels to reflect the page’s section structure, rather than just the size you want the text to appear.
  • <p> marks a paragraph.
  • <a> creates a link; its href attribute identifies the destination.
  • <img> embeds an image. The src attribute identifies the image file, and descriptive alternative text is important when the image conveys information.
  • <ul> and <ol> create unordered and ordered lists; each list item belongs in an <li> element.
  • <form> groups controls used to collect or submit information.

These elements give you enough vocabulary to make a simple page and begin exploring more detailed HTML topics.

Rank #4
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers

Why semantic HTML matters

Semantic HTML means choosing elements for what their content or region means, not merely for how it looks. A page with a meaningful heading hierarchy and clearly identified regions is easier to understand and navigate than one built from undifferentiated containers.

The W3C Web Accessibility Initiative’s Page Structure Tutorial explains how logical headings and meaningful structure can help screen-reader users, keyboard users, people with cognitive and learning disabilities, and people using reading modes. It also notes that structure can help search engines index a page. A semantic element by itself does not guarantee accessibility: the content and its relationships still need to make sense.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How browsers process HTML

Browsers interpret HTML documents according to the HTML syntax and standard. A document served with the text/html media type is processed as HTML. The WHATWG introduction describes the standard as defining “an abstract language for describing documents and applications, and some APIs for interacting with in-memory representations of resources that use this language.” Read the HTML Standard introduction for the distinction between HTML and XML syntax.

For beginners, the practical point is that ordinary web pages generally use HTML syntax. XML syntax is different and has different parsing behavior; it is not necessary to learn it before building a basic HTML page.

HTML is maintained as the WHATWG HTML Living Standard, rather than as a single frozen version. Its index reported “Last Updated 8 September 2026” when checked. It covers document structure, elements, interaction, loading, APIs, syntax, and rendering.

What to practice next

  1. Create a small page with a document title, one main heading, and a few paragraphs.
  2. Add a link, an image, and a list. Give links meaningful text and images suitable alternative text.
  3. Divide the page into appropriate regions, such as header, main, and footer, and organize headings according to the content.
  4. Continue with attributes, page metadata, and forms once you are comfortable with the basic structure.

MDN’s Structuring content with HTML module assumes no prior HTML knowledge and works through syntax, metadata, headings, paragraphs, lists, and other text structure. If you cannot create a local file, its guidance suggests trying an online editor such as CodePen or JSFiddle.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.