Glossary
HyperText Markup Language (HTML)

HyperText Markup Language (HTML) quick guide

Definition

HTML, or HyperText Markup Language, is the standard markup language used to create and structure content on the web. It provides the skeleton of a webpage by defining elements like headings, paragraphs, links, images, and multimedia.

Why It Matters

HTML is the foundation of the internet. Every webpage you visit is built, at its core, with HTML. Without it, browsers wouldn't know how to display text, images, or interactive content. Whether you're creating a personal blog or building a high-traffic eCommerce site, HTML is essential for delivering structured content to users and search engines alike.

Key reasons HTML matters:

  • Accessibility: Semantic HTML helps screen readers and assistive technologies interpret content correctly.
  • SEO: Search engines use HTML to understand the structure and relevance of your content.
  • Performance: Clean, optimized HTML leads to faster loading pages.
  • Compatibility: HTML is supported by all browsers, making it a universal tool for web development.

Key Components of HTML

  • Doctype Declaration:<!DOCTYPE html> – tells the browser you're using HTML5.
  • HTML Element: <html> – the root element that wraps all content.
  • Head Section: <head> – contains metadata, title, and links to CSS/JavaScript.
  • Body Section: <body> – holds the visible content like text, images, buttons, and forms.
  • Tags & Elements:
    • Headings: <h1> to <h6>
    • Paragraphs: <p>
    • Links: <a href="">
    • Images: <img src="">
    • Lists: <ul>, <ol>, <li>
    • Divisions: <div> and <span> for layout and inline styling
  • Attributes: Provide additional information, like href in links or alt in images.

Best Practices

  • Use semantic tags: Prefer <article>, <section>, and <nav> over just <div> for clarity and SEO.
  • Structure content logically: Use headings hierarchically (start with <h1>, follow with <h2>, etc.).
  • Include alt text for images: Ensures accessibility and better SEO.
  • Avoid inline styling: Keep CSS in separate stylesheets for maintainability.
  • Validate your HTML: Use tools to catch errors early.

Real-World Example

Imagine you’re visiting the website of your favorite local coffee shop. The layout and content you see are all made possible by HTML:

  • Header Section: At the top, there's a bold name like “Brew & Beans Café” followed by a navigation menu with links to “Menu,” “Order Online,” “Our Story,” and “Contact.” HTML uses structured tags to build that header and link system so users can click around easily.
  • Main Body: The homepage features a beautiful photo of a steaming latte and a short paragraph welcoming you to the café. That image and paragraph are placed and formatted using HTML elements.
  • Menu Section: There's a list of items—like Espresso, Cappuccino, and Chai Latte—each with descriptions and prices. HTML organizes this info in a clear and accessible way, often using list and section elements.
  • Contact Form: Near the bottom, there’s a form where you can enter your name, email, and a message. HTML structures that form and tells the browser what each field should be.
  • Footer: At the very bottom, you’ll see links to the café’s social media pages, the address, and maybe a copyright notice. Again, all laid out and labeled with HTML.

This entire experience—from the logo you see to the links you click and the text you read—is built on a backbone of HTML. It's what gives structure to every part of the page and ensures that what you see in your browser is readable, navigable, and usable.