Development · Term

HTML

HTML (HyperText Markup Language) is the code that gives every web page its structure, telling the browser which parts are headings, paragraphs, links, images, forms and buttons.

HTML is not a programming language in the usual sense: it does not calculate or decide anything. It labels content. A browser reads those labels and draws the page, CSS decides how it looks, and JavaScript adds behaviour. Every site, whether hand-coded or built in WordPress, ends up as HTML by the time it reaches a visitor.

The idea that matters for an owner is that the labels carry meaning. A heading marked as a heading, a button marked as a button and an image with a description are understood by search engines, AI crawlers and screen readers. Text that merely looks like a heading, because it was made big and bold, is not.

How it works

HTML is written as elements wrapped in tags. A tag such as h1 marks the main heading, p marks a paragraph, a marks a link and img places an image. Elements nest inside each other to form a tree: the page contains a header, the header contains a menu, the menu contains links. Elements can also carry attributes, extra pieces of information such as the address a link points to or the text description of an image.

When someone opens a page, the server sends the HTML file first. The browser reads it from top to bottom, and every time it meets a reference to a stylesheet, script, font or image it requests that file too. It then combines the structure with the styles and draws the page. Anything that blocks this reading, such as a large script near the top, delays the moment the visitor sees content.

Search engines and AI crawlers read the same HTML. They pay particular attention to the title tag in the page head, the headings, the link text and structured information such as schema markup. Using the right element for each job, rather than generic boxes styled to look right, is called semantic HTML, and it is what lets machines and assistive technology understand a page as well as people do.

Example

A dental clinic's services page has a title that only looks big because it was styled that way, while the real h1 on every page is the clinic's logo text. Every page therefore announces the same main heading, so to search engines and screen readers the implant, whitening and orthodontics pages all open with the clinic's name instead of their own subject.

The fix is small: the service name becomes the h1 on each page and the logo becomes plain text or an image with a descriptive alt attribute. Nothing changes visually, because the CSS keeps the same sizes, but each page now has one clear, distinct subject that search engines and screen readers can identify.

Why it matters for your business

Clean HTML is cheap to get right when a site is built and expensive to fix afterwards, because poor markup is usually repeated across every template. It affects how search engines understand your pages, whether people using a keyboard or screen reader can complete your forms, and how quickly pages appear. You do not need to write it yourself, but you can check it: view the page source and look for a main heading (h1) that names each page's own topic, real links rather than clickable boxes, and alt text on meaningful images. If those basics are missing, deeper problems are likely.

Common mistakes

  • Leaving a page with no h1, or marking the logo or a slogan as the h1 on every page, so the main topic is unclear.
  • Building buttons out of styled boxes that a keyboard or screen reader cannot operate.
  • Placing important text inside images, where search engines and screen readers cannot read it.
  • Pasting content from a word processor and carrying hidden formatting code into the page.

Questions people ask

Do I need to learn HTML to run a website?

No. A content management system lets you write and publish without touching code. Knowing the basics still helps: you will understand why headings matter, spot broken formatting and have clearer conversations with your developer about what is going wrong on a page.

What is the difference between HTML and CSS?

HTML defines what each piece of content is, such as a heading, a list or a link. CSS defines how it looks, such as its colour, size and position. The same HTML can look completely different with different CSS, which is how one site can be redesigned without rewriting its content.

How can I see the HTML of a web page?

In most desktop browsers you can right-click a page and choose to view the page source, or open the developer tools to inspect a single element. The source shows the HTML the server sent, which is useful for checking titles, headings and meta tags.

Related terms

Have something worth building right?