HTML - Hypertext Markup Language, extends any document, in any language, with structured (<title>
), multimedia (<video>
), interactive (<input>
), markup, into a, magic, digital document, or (web)page, (web)site, or app.
A markup language, is, a declarative programming language, that is a superset of written natural language. Markup languages have semantics because natural language does.
HTML is not XHTML, XHTML is HTML in XML. HTML is not JSX, JSX is HTML in JS. HTML is not W3C/HTML, W3C made HTML4. Only WHATWG/HTML, HTML5, is HTML. Until Mozilla merges with WHATWG into HTML6.
<!-- ./hello-world.html -->
<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
Hello, World!
Read web.dev/learn/html/document-structure to understand this mess history.
<!-- comment -->
- Comment&#x
+ $UNICODE +;
- Escape<style>
- CSS<script type="module">
- JS
The markup's language is set with the IETF language tag. It includes fantasy languages prefixed with x-
.
lang="en-GB"
- British Englishlang="gsw-u-sd-chzh"
- Zuerich Germanlang="x-sga"
- Minecraft Enchanting Table
Extends elements with semantic meaning.
<button class="signup">
<button class="signin">
<button class="signout">
Learn HTML web.dev/learn/html