Home · Markup and tags
Elements, tags and a sample page
Markup and tags
The official WHATWG introduction includes a non-normative “quick introduction to HTML,” with a basic document, and a careful distinction between elements and tags. MDN, separately, describes how an element is set off by tags. The two wordings are quoted on their own. [source] [source]
A basic official sample
The official introduction says “A basic HTML document looks like this,” and then gives this sample. [source]
<!DOCTYPE html> <html lang="en"> <head> <title>Sample page</title> </head> <body> <h1>Sample page</h1> <p>This is a <a href="demo.html">simple</a> sample.</p> <!-- this is a comment --> </body> </html>
It then says: “HTML documents consist of a tree of elements and text. Each element is denoted in the source by a start tag, such as “<body>”, and an end tag, such as “</body>”.” [source]
What MDN says about tags
MDN says: “An HTML element is set off from other text in a document by “tags”, which consist of the element name surrounded by < and >.” The name of an element inside a tag, it says, is case-insensitive, “However, the convention and recommended practice is to write tags in lowercase.” [source]


Enjoyed the markup?
No pop-ups. No intrusive advertising. Just interesting stuff. A little support helps the next programmers site get built.