Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.73 KB

html.md

File metadata and controls

72 lines (50 loc) · 2.73 KB

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.

What is Markup

A markup language, is, a declarative programming language, that is a superset of written natural language. Markup languages have semantics because natural language does.

Note for pros

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

<!-- ./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.

Syntax

  • <!-- comment --> - Comment
  • &#x + $UNICODE + ; - Escape
  • <style> - CSS
  • <script type="module"> - JS

lang Attribute

The markup's language is set with the IETF language tag. It includes fantasy languages prefixed with x-.

class Attribute

Extends elements with semantic meaning.

  • <button class="signup">
  • <button class="signin">
  • <button class="signout">

See also

Learn HTML web.dev/learn/html