Skip to content

What Is HTML?

HTML (HyperText Markup Language) is the markup language that defines the structure of web pages. It is not a programming language; it tells the browser "this is a heading, this is a paragraph, this is a link". It was first developed in the early 1990s by Tim Berners-Lee; the version in use today is known as HTML5.

How tags work

HTML is made of tags. Most tags open and close; the content in between carries the meaning of that tag:

<p>This is a paragraph.</p>
<a href="https://www.rootcomputer.com/">This is a link</a>

A simple page

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page title</title>
</head>
<body>
<h1>Hello</h1>
<p>My first page.</p>
</body>
</html>

Common tags

TagMeaning
<h1> – <h6>Headings
<p>Paragraph
<a>Link
<img>Image
<ul>, <ol>, <li>Lists
<table>Table
<form>, <input>Form and input fields
<header>, <nav>, <main>, <footer>Semantic sections of the page

Why does semantic HTML matter?

  • Search engines understand what a page is about from its heading and section tags.
  • Screen readers read the page to visually impaired users through this structure.
  • Writing alt text for images, declaring lang for the page and using headings in order are the basics of good HTML.

HTML is the skeleton of the page; CSS determines its appearance, and the content is most often produced on the server with a language such as PHP.