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:
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?