HTML
How it works
An author describes content using elements delimited by tags (<tag>...</tag>) and refined by attributes (e.g. src, href, alt). The browser parses the HTML document โ leniently, following the standard's parsing rules โ into a DOM tree. CSS applies presentation rules to that tree, and JavaScript reads and mutates it at runtime. Semantic elements (e.g. <header>, <nav>, <article>) carry meaning used by assistive technologies and search engines.
Problem solved
Before HTML there was no common, portable way to describe linked documents (hypertext) that could be displayed on any machine. HTML provided a single, open, declarative format that every browser can parse and render regardless of operating system or hardware.
Strengths & limitations
Components
The basic unit of HTML content, usually delimited by an opening and closing tag; it carries structure and meaning (e.g. <p>, <img>, <article>).
The syntax that marks off an element โ the element name surrounded by < and >, e.g. <p> ... </p>. Names are case-insensitive, with lowercase being the convention.
An additional value that configures an element or adjusts its behavior, written in the opening tag (e.g. src, href, alt, class, id).
The tree structure the browser parser builds from the HTML document; exposed as the Document Object Model that CSS and JavaScript operate on.
Implementation
The permissive HTML parser repairs malformed markup per the standard's rules, producing a DOM different from the one intended while the mistake stays invisible.
Injecting unsanitized user data straight into HTML allows script injection (cross-site scripting).
Building a UI only from <div> and <span> instead of semantic elements strips the content of meaning needed by assistive technologies.
Evolution
Tim Berners-Lee publishes the "HTML Tags" document describing the initial 18 elements.
The first HTML specification intended to be treated as a standard, published on 24 November 1995.
Published on 24 December 1999; the last HTML version before development paused for several years.
Apple, Mozilla and Opera found the WHATWG and begin developing HTML5 in reaction to the W3C's direction toward XHTML.
HTML5 standardized as a W3C Recommendation on 28 October 2014.
On 28 May 2019 the W3C announced that the WHATWG would be the sole publisher of the HTML and DOM standards; HTML is developed as a Living Standard.
Hardware requirements
HTML is a platform-independent text format; it is parsed and rendered by browser engines on any hardware.