Book a call Free rebuild

HTML

March 20, 2023 Updated November 16, 2026 3 min read

Design glossaryHTML (HyperText Markup Language) is the language that describes the structure and content of a web page: headings, paragraphs, links, images, and forms.

HTML is the markup every web page is built from. It labels each piece of content with what it is, such as a heading, a paragraph, a list, a link, or an image, so that browsers, search engines, and screen readers can make sense of it. It is not a programming language: it describes content rather than running logic.

HTML works alongside two other technologies. CSS controls how the content looks, and JavaScript adds behavior, such as a menu that opens on tap. A page can work with HTML alone; it cannot work without it.

How HTML works

HTML is made of elements, written with tags in angle brackets. Most elements have an opening and a closing tag around their content, and many take attributes that add information:

<h2>Opening hours</h2>
<p>We are open <strong>every day</strong> from 9 to 5.</p>
<a href="https://example.com/directions/">Get directions</a>
<img src="shop.jpg" alt="Our shop front on Main Street">

A full document starts with <!DOCTYPE html>, then an <html> element containing a <head> (the title, metadata, and links to stylesheets) and a <body> (everything visitors see). The browser reads this text and builds the Document Object Model (DOM), the live structure that CSS styles and JavaScript changes.

HTML today is a "living standard" maintained by the WHATWG, the group of browser makers, and updated continuously rather than in numbered versions. "HTML5" is still used loosely to mean modern HTML.

Why semantic HTML matters

Semantic HTML means choosing elements for their meaning, not their default look. A heading should be an <h2>, not a bold paragraph; navigation belongs in <nav>; the main content in <main>; a button in <button>, not a styled <div>. It pays off in three ways:

  • Accessibility: screen readers use headings, landmarks, labels, and alt text to let people navigate and understand a page.
  • Search: clear heading tags, descriptive links, and proper titles help search engines understand what a page is about.
  • Maintenance: meaningful markup is easier to restyle and less likely to break.

Note that <strong> and <em> mark importance and emphasis; browsers show them bold and italic by default, but their purpose is meaning, not styling.

HTML in WordPress

WordPress generates HTML for you: the theme provides the page structure, and the block editor turns each block into HTML when a post is saved. Behind the scenes, posts are stored as HTML with comments such as <!-- wp:paragraph --> that tell the editor where each block starts and ends.

  • Edit as HTML: simple blocks such as Paragraph and Heading have "Edit as HTML" in their options menu, and the whole post can be switched to the Code editor.
  • Custom HTML block: for embedding snippets such as a form or widget code.
  • Restrictions: WordPress strips potentially dangerous markup, such as scripts, from users who lack the unfiltered_html capability. On a single site, only Administrators and Editors have it; on Multisite, only Super Admins.

Common mistakes

  • Skipping heading levels or choosing headings for their size rather than their place in the outline.
  • Images without meaningful alt text, or decorative images with alt text that adds noise.
  • Clickable <div>s instead of real links and buttons, which keyboard users cannot reach.
  • Invalid markup, such as unclosed tags, pasted in from other tools. The W3C's free Nu HTML Checker finds these quickly.

Source: MDN, HTML: HyperText Markup Language.

WP Services

WordPress services at revolutionary pricing.

Productized WordPress services, from builds to care, delivered by Seahawk and tracked in one app. For the WordPress lovers.