HTML
HTML is the most basic building block of the Web.
When the Web was born, we had HTML files, they were stored on a server (a centralized location), and browsers were able to visualize the content of the HTML files by asking them to the server.
Weâll see more about this later, but now letâs focus on HTML.
HTML stands for âHyper Text Markup Languageâ, and itâs not strictly a programming language. HTML is a markup language, and it is structured using tags.
In its basic form, HTML is stored in a file ends with the .html
file extension.
In an HTML file, we basically write text, as we would in a plain text file, but we save it with the .html
file extension.
This file contains some content, think paragraphs or titles, organized with some markup that the browser uses to get information on how to visualize this content to the end user.
Hereâs an example of HTML in action:
<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>
.
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.
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.
Last updated
Was this helpful?