HTML: The Parts That Matter

A short reference for what HTML is actually doing, written for the point where you have opened a text editor and want to know what you are typing.

Tags and elements

The whole language is tags and elements.

So <p> opens a paragraph, </p> closes it, and <img> stands alone.

What HTML is for

HTML does the structure and nothing else:

The two you will reach for constantly

Both carry meaning as well as appearance, which is why they are preferred over purely visual tags. A screen reader can act on <strong>; it cannot act on something that is merely styled bold.

The simplest possible page

The most basic way to make a web page is to open a text editor and save the file with a .html extension. The main page of any site is always index.html — that is the file a server looks for when someone requests a directory.

Where the other two come in

That is genuinely most of what you need to build one simple page with HTML alone. The other two do the rest:

Structure, then appearance, then behaviour — in that order, and they stay separate for a reason.