Insight / 11 June 03, 2026 — 4 min read

What is html? the structure of information

Fredy Polania

Fredy Polania

Founder & Principal Strategist

Definition and Specification

HTML (HyperText Markup Language) is the main component of the web. According to the World Wide Web Consortium (W3C), it is the language for describing the structure of web pages. It provides authors with the means to:

As MDN Web Docs well defines, HTML is not a programming language; it is a markup language that encapsulates parts of the content to make them behave in a certain way (italicize, enlarge fonts, redirect to other pages).

1. Anatomy of an HTML Element

The language uses markup tags to label pieces of content. Most tags have:

  1. Opening tag: <tag>
  2. Content: This is a title
  3. Closing tag: </tag> Example: <h1>This is a title</h1>

The general rule to declare content in HTML is illustrated in the following image:

Structure of an HTML tag Structure of an HTML tag

HTML elements can also have attributes, as shown in the following diagram:

Attribute of an HTML tag Attribute of an HTML tag

Attributes contain additional information about elements. In the image above, class is the attribute name and note is its value. The class attribute provides an identifier that can be used to apply CSS styles.

The definitions and diagrams in this section are adapted from MDN Web Docs.

Attributes and Nesting

It is also possible to declare tags inside other tags (nesting) following the same rule. For instance, in the following structure, the <h1> and <p> tags are nested inside the <body> element:

<body>
  <h1>My First Heading</h1>
  <p>My first paragraph</p>
</body>

From a graphic design perspective, these tags often define layout containers or components. However, it is important to note that HTML alone cannot apply visual styling to our pages; that is the role of CSS.

2. Base Structure of a Document

Every HTML document requires a boilerplate structure to inform web browsers how to process it. The following code illustrates the base structure:

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>My First Heading</h1>
    <p>My first paragraph</p>
  </body>
</html>

Here is the purpose of the tags that make up this base structure:

<head>
  <title>Page Title</title>
  <meta name="description" content="Description of HTML" />
  <style>
    /* CSS example to color h1 elements blue */
    h1 {
      color: blue;
    }
  </style>
  <script>
    // JavaScript example to multiply two values
    function myFunction(p1, p2) {
      return p1 * p2;
    }
  </script>
</head>

The head elements description is adapted from htmlquick.com.

From my methodology, HTML is the invisible architecture. Without a clear structure, there is no SEO or accessibility, two critical pillars for the success of any digital product.

References

Related Insights

See all →