HTML, or Hyper Text Markup Language, is the fundamental building block of the World Wide Web. In the early days of the internet, HTML files served as the backbone of web content, stored on centralized servers and accessed by browsers to display information.

Despite its importance, HTML is not a programming language; instead, it is a markup language structured using tags. When creating a basic HTML file, it is conventionally saved with the .html file extension.

In essence, an HTML file contains textual content, such as paragraphs or titles, organized with markup that instructs the browser on how to present the content to the user.

Simple example

<p>A paragraph of text</p>

<ul>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ul>

This HTML snippet says thatĀ A paragraph of textĀ is aĀ paragraph. And then we have aĀ listĀ of 3 items.

pĀ stands forĀ paragraph,Ā ulĀ stands forĀ unordered list, andĀ liĀ stands forĀ list item.

For each of them, we have anĀ opening tagĀ (likeĀ <p>), the content, and aĀ closing tagĀ (likeĀ </p>).

SoĀ <opening tag>Ā ā€¦content ā€¦Ā </closing tag>.

Definition

Now I want to tell you something about HTML you should know.

HTML is notĀ presentational. Itā€™s not concerned with how thingsĀ look.

Instead, itā€™s concerned with what thingsĀ mean.

You donā€™t tell ā€œmake this paragraph redā€ in HTML.

Thatā€™s aĀ presentational aspect.

Conclusion

HTML is just concerned with content.

It just adds some predefined styles here and there, like for example with the list. But thatā€™s it. Thereā€™s no customization you can do on how it looks, in HTML.

This will be the job of CSS, but thatā€™s a story for another lesson.

Categorized in:

Code, Guides, HTML, Tech,