{
  "id": "html-001041-74f7c385628bde4e",
  "slug": "html",
  "title": "HTML",
  "qid": "Q8811",
  "lead": "Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. Web browsers receive HTML documents from a web server or from local storage and render the documents into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for its appearance. HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects such as interactive forms may be embedded into the rendered page. HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as and directly introduce content into the page. Other tags such as and its corresponding closing tag surround and provide information about document text and may include sub-element tags. Browsers do not display the HTML tags, but use them to interpret the content of the page. HTML can embed programs written in a scripting language such as JavaScript, which affects the behavior and content of web pages.…",
  "body": "Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. Web browsers receive HTML documents from a web server or from local storage and render the documents into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for its appearance. HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects such as interactive forms may be embedded into the rendered page. HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as and directly introduce content into the page. Other tags such as and its corresponding closing tag surround and provide information about document text and may include sub-element tags. Browsers do not display the HTML tags, but use them to interpret the content of the page. HTML can embed programs written in a scripting language such as JavaScript, which affects the behavior and content of web pages. The inclusion of CSS defines the look and layout of content. The World Wide Web Consortium (W3C), former maintainer of the HTML and current maintainer of the CSS standards, has encouraged the use of CSS over explicit presentational HTML This is a title Hello world! The text between and describes the web page, and the text between and is the visible page content. The markup text defines the browser page title shown on browser tabs and window titles and the tag defines a division of the page used for easy styling. Between and , a element can be used to define webpage metadata. The Document Type Declaration is for HTML5. If a declaration is not included, various browsers will revert to \"quirks mode\" for rendering. The Title Heading level 1 Heading level 2 Heading level 3 Heading level 4 Heading level 5 Heading level 6 The effects are: Heading Level 1 Heading Level 2 Heading Level 3 Heading Level 4 Heading Level 5 Heading Level 6 CSS can substantially change the rendering. Paragraphs: Paragraph 1 Paragraph 2 This is a paragraph with line breaks A link to Wikipedia! There are many possible ways a user can give inputs like: ===== Comments ===== Comments can help in the understanding of the markup and do not display in the webpage. There are several types of markup elements used in HTML: Structural markup indicates the purpose of text: For example, establishes \"Golf\" as a second-level heading. Structural markup does not denote any specific rendering, but most web browsers have default styles for element formatting. Content may be further styled using Cascading Style Sheets (CSS). Presentational markup indicates the appearance of the text, regardless of its purpose: For example, indicates that visual output devices should render \"boldface\" in bold text, but gives little indication what devices that are unable to do this (such as aural devices that read the text aloud) should do. In the case of both and , there are other elements that may have equivalent visual renderings but that are more semantic in nature, such as and respectively. It is easier to see how an aural user agent should interpret the latter two elements. However, they are not equivalent to their presentational counterparts: it would be undesirable for a screen reader to emphasize the name of a book, for instance, but on a screen, such a name would be italicized. Most presentational markup elements have become deprecated under the HTML 4.0 specification in favor of using CSS for styling. Hypertext markup makes parts of a document into links to other documents: An anchor element creates a hyperlink in the document and its href attribute sets the link's target URL. For example, the HTML markup , will render the word \" Wikipedia \" as a hyperlink. To render an image as a hyperlink, an img element is inserted as content into the a element. Like br , img is an empty element with attributes but no content or closing tag. . The lang attribute identifies the natural language of the element's contents, which may be different from that of the rest of the document. For example, in an English-language document: Oh well, c'est la vie , as they say in France. The abbreviation element, abbr , can be used to demonstrate some of these attributes: HTML This example displays as HTML ; in most browsers, pointing the cursor at the abbreviation should display the title text \"Hypertext Markup Language.\" Most elements take the language-related attribute dir to specify text direction, such as with \"rtl\" for right-to-left text in, for example, Arabic, Persian or Hebrew. An example of an HTML 4 doctype This declaration references the DTD for the \"strict\" version of HTML 4.01. SGML-based validators read the DTD in order to properly parse the document and to perform validation. In modern browsers, a valid doctype activates standards mode as opposed to quirks mode. In addition, HTML 4.01 provides Transitional and Frameset DTDs, as explained below. The transitional type is the most inclusive, incorporating current tags as well as older or \"deprecated\" tags, with the Strict DTD excluding deprecated tags. The frameset has all tags necessary to make frames on a page along with the tags included in transitional type. Remove the XML namespace ( xmlns=URI ). HTML has no facilities for namespaces. Change the document type declaration from XHTML 1.0 to HTML 4.01. If present, remove the XML declaration. Typically this is: . Ensure that the document's MIME type is set to text/html . For both HTML and XHTML, this comes from the HTTP Content-Type header sent by the server. Change the XML empty-element syntax to an HTML style empty element ( to ). Those are the main changes necessary to translate a document from XHTML 1.0 to HTML 4.01. To translate from HTML to XHTML would also require the addition of any omitted opening or closing tags. Whether coding in HTML or XHTML it may just be best to always include the optional tags within an HTML document rather than remembering which tags can be omitted. A well-formed XHTML document adheres to all the syntax requirements of XML. A valid document adheres to the content specification for XHTML, which describes the document structure. The W3C recommends several conventions to ensure an easy migration between HTML and XHTML. The following steps can be applied to XHTML 1.0 documents only: Include both xml:lang and lang attributes on any elements assigning language. Use the empty-element syntax only for elements specified as empty in HTML. Remove the closing slash in empty-element tags: for example instead of . Include explicit close tags for elements that permit content but are left empty (for example, , not ). Omit the XML declaration. By carefully following the W3C's compatibility guidelines, a user agent should be able to interpret the document equally as HTML or XHTML. For documents that are XHTML 1.0 and have been made compatible in this way, the W3C permits them to be served either as HTML (with a text/html MIME type), or as XHTML (with an application/xhtml+xml or application/xml MIME type). When delivered as XHTML, browsers should use an XML parser, which adheres strictly to the XML specifications for parsing the document's contents.",
  "categories": [
    "102983832",
    "106939032",
    "110413019",
    "11060667",
    "113832368",
    "113832398",
    "116685982",
    "127982569",
    "130386611",
    "20176031",
    "20528537",
    "22927306",
    "22943026",
    "22974076",
    "22985424",
    "23068529",
    "23117742",
    "23118434",
    "23139799",
    "23603337",
    "24043274",
    "24623845",
    "24745122",
    "26748027",
    "28493674",
    "28493675",
    "29815558",
    "29815561",
    "31128803",
    "34933827",
    "38807423",
    "4030890",
    "42539518",
    "43849222",
    "89061549",
    "99494716"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1377139320",
  "content_hash": "74f7c385628bde4ec82a0601539dd3080b6dbe2fab36328209feae88e90b87de",
  "created_at": 1792308279.7274885,
  "updated_at": 1790553177.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "html-001041-74f7c385628bde4e",
    "type": "webpage",
    "title": "HTML",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/html",
    "issued": {
      "date-parts": [
        [
          2026,
          10,
          18
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          20
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:html-001041-74f7c385628bde4e",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1377139320",
    "note": "Immutable snapshot html-001041-74f7c385628bde4e, content root 74f7c385628bde4e…"
  }
}