HTML
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...
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.
References
- ^ "W3C Html" . Archived from the original on 2009-02-21 . Retrieved 2017-10-17 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1508194800.0
- ^ "Index of the HTML 4 elements" . World Wide Web Consortium. December 24, 1999. Archived from the original on May 5, 2007 . Retrieved April 8, 2007 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Sauer, C.: WYSIWIKI – Questioning WYSIWYG in the Internet Age. In: Wikimania (2006) Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Spiesser, J., Kitchen, L.: Optimization of HTML automatically generated by WYSIWYG programs. In: 13th International Conference on World Wide Web, pp. 355–364. WWW '04. ACM, New York, NY (New York, NY, U.S., May 17–20, 2004) Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "WYSIWYM (What You See Is What You Mean) | Linux Journal" . www.linuxjournal.com . Archived from the original on 2026-01-02 . Retrieved 2025-12-16 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1765839600.0
- ^ XHTML Reference: blockquote Archived 2010-03-25 at the Wayback Machine . Xhtml.com. Retrieved on 2012-02-16. Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Doug Engelbart's INVISIBLE REVOLUTION Archived 2023-10-30 at the Wayback Machine . Invisiblerevolution.net. Retrieved on 2012-02-16. Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Berners-Lee, Tim (December 9, 1991). "Re: SGML/HTML docs, X Browser" . w3 . Archived from the original on December 22, 2007 . Retrieved June 16, 2007 . SGML is very general. HTML is a specific application of the SGML basic syntax applied to hypertext documents with simple structure. Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Berners-Lee, Tim; Connolly, Daniel (June 1993). "Hypertext Markup Language (HTML): A Representation of Textual Information and MetaInformation for Retrieval and Interchange" . w3 . Archived from the original on January 3, 2017 . Retrieved January 4, 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Berners-Lee, Tim ; Connolly, Daniel W. (November 1995). Hypertext Markup Language - 2.0 . Network Working Group. doi : 10.17487/RFC1866 . RFC 1866 . Historic. Obsoleted by RFC 2854 . This document thus defines an HTML 2.0 (to distinguish it from the previous informal specifications). Future (generally upwardly compatible) versions of HTML with new features will be released with higher version numbers. Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML5 – Hypertext Markup Language – 5.0" . Internet Engineering Task Force. 28 October 2014. Archived from the original on October 28, 2014 . Retrieved November 25, 2014 . This document recommends HTML 5.0 after completion. Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 3.2 Reference Specification" . World Wide Web Consortium. January 14, 1997. Archived from the original on February 3, 2018 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "IETF HTML WG" . Archived from the original on September 13, 2018 . Retrieved June 16, 2007 . Note: This working group is closed Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Hermans, Felienne ; Schlesinger, Ari (2024-10-17). "A Case for Feminism in Programming Language Design". Proceedings of the 2024 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software . ACM. pp. 205– 222. doi : 10.1145/3689492.3689809 . ISBN 979-8-4007-1215-9 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 4.0 Specification" . World Wide Web Consortium. December 18, 1997. Archived from the original on August 30, 2019 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 4 – 4 Conformance: requirements and recommendations" . Archived from the original on February 16, 2019 . Retrieved December 30, 2009 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 4.0 Specification" . World Wide Web Consortium. April 24, 1998. Archived from the original on September 4, 2019 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 4.01 Specification" . World Wide Web Consortium. December 24, 1999. Archived from the original on August 30, 2019 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 4 Errata" . W3C. Archived from the original on February 23, 2023 . Retrieved March 2, 2023 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "ISO/IEC 15445:2000(E) ISO-HTML" . www.scss.tcd.ie . Geneva, CH: ISO/IEC. May 15, 2000. Archived from the original on December 2, 2007 . Retrieved March 1, 2023 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML5: A vocabulary and associated APIs for HTML and XHTML" . World Wide Web Consortium. 28 October 2014. Archived from the original on 14 November 2020 . Retrieved 31 October 2014 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "Open Web Platform Milestone Achieved with HTML5 Recommendation" (Press release). World Wide Web Consortium. 28 October 2014. Archived from the original on 28 October 2014 . Retrieved 31 October 2014 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 5.1" . World Wide Web Consortium. 1 November 2016. Archived from the original on 9 November 2016 . Retrieved 6 January 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Even though HTML code can be executed in a browser, it is not viewed as a programming language in programming language discourse. [ 2 ] Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 5.1 is a W3C Recommendation" . World Wide Web Consortium. 1 November 2016. Archived from the original on 8 November 2020 . Retrieved 6 January 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Philippe le Hegaret (17 November 2016). "HTML 5.1 is the gold standard" . World Wide Web Consortium. Archived from the original on 8 November 2020 . Retrieved 6 January 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 5.2" . World Wide Web Consortium. 14 December 2017. Archived from the original on 29 October 2020 . Retrieved 15 December 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML 5.2 is now a W3C Recommendation" . World Wide Web Consortium. 14 December 2017. Archived from the original on 7 November 2020 . Retrieved 15 December 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Charles McCathie Nevile (14 December 2017). "HTML 5.2 is done, HTML 5.3 is coming" . World Wide Web Consortium. Archived from the original on 9 November 2020 . Retrieved 15 December 2017 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Connolly, Daniel (6 June 1992). "MIME as a hypertext architecture" . CERN. Archived from the original on 26 December 2010 . Retrieved 24 October 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Connolly, Daniel (15 July 1992). "HTML DTD enclosed" . CERN. Archived from the original on 20 November 2010 . Retrieved 24 October 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Connolly, Daniel (18 August 1992). "document type declaration subset for Hyper Text Markup Language as defined by the World Wide Web project" . CERN. Archived from the original on 14 March 2012 . Retrieved 24 October 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Berners-Lee, Tim ; Connolly, Daniel (June 1993). "Hyper Text Markup Language (HTML) Internet-Draft version 1.1" . IETF IIIR Working Group. Archived from the original on 16 November 2010 . Retrieved 18 September 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Raggett, Dave (1993-11-08). "History for draft-raggett-www-html-00" . IETF Datatracker . Archived from the original on 2020-08-01 . Retrieved 2019-11-18 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1574031600.0
- ^ Berners-Lee, Tim ; Connolly, Daniel (28 November 1994). "HyperText Markup Language Specification – 2.0 INTERNET DRAFT" . Internet Engineering Task Force . Archived from the original on 19 August 2010 . Retrieved 24 October 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Connolly, Daniel W. (1995-05-16). "Hypertext Markup Language – 2.0" . tools.ietf.org . Archived from the original on 2020-08-01 . Retrieved 2019-11-18 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1574031600.0
- ^ "HTML 3.0 Draft (Expired!) Materials" . World Wide Web Consortium. December 21, 1995. Archived from the original on October 25, 2008 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Raggett, Dave (28 March 1995). "HyperText Markup Language Specification Version 3.0" . HTML 3.0 Internet Draft Expires in six months . World Wide Web Consortium . Archived from the original on 14 March 2010 . Retrieved 17 June 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Bowers, N. (1998). "Weblint: just another perl hack" (PDF) . 1998 USENIX Annual Technical Conference (USENIX ATC 98) . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Lie, Håkon Wium ; Bos, Bert (April 1997). Cascading style sheets: designing for the Web . Addison Wesley Longman. p. 263 . ISBN 978-0-201-41998-6 . Retrieved 9 June 2010 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Tim Berners-Lee, " Information Management: A Proposal Archived 2010-04-01 at the Wayback Machine ". CERN (March 1989, May 1990). W3C. Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML5" . World Wide Web Consortium. June 10, 2008. Archived from the original on July 7, 2019 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML5, one vocabulary, two serializations" . 15 January 2008. Archived from the original on 21 September 2013 . Retrieved February 25, 2009 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Hickson, Ian (January 19, 2011). "HTML Is the New HTML5" . The WHATWG Blog . Archived from the original on 6 October 2019 . Retrieved 21 January 2011 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Grannell, Craig (July 23, 2012). "HTML5 gets the splits" . Net magazine. Archived from the original on Jul 25, 2012 . Retrieved 23 July 2012 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML5" . W3C. 2012-12-17. Archived from the original on 2013-06-20 . Retrieved 2013-06-15 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1371250800.0
- ^ "Call for Review: HTML5 Proposed Recommendation Published W3C News" . W3C. 2014-09-16. Archived from the original on 2014-09-26 . Retrieved 2014-09-27 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1411772400.0
- ^ "Open Web Platform Milestone Achieved with HTML5 Recommendation" . W3C. 28 October 2014. Archived from the original on 28 October 2014 . Retrieved 29 October 2014 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Berners-Lee, Tim. "Intended Uses" . W3C . Archived from the original on 2017-10-14 . Retrieved 2018-03-02 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1519945200.0
- ^ "HTML vs XML syntax" . WHATWG. Archived from the original on 22 March 2023 . Retrieved 22 March 2023 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "XHTML 1.0: The Extensible HyperText Markup Language (Second Edition)" . World Wide Web Consortium. January 26, 2000. Archived from the original on November 14, 2008 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "XHTML 1.1 – Module-based XHTML — Second Edition" . World Wide Web Consortium. February 16, 2007. Archived from the original on November 14, 2008 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "Modularization of XHTML" . W3C . Archived from the original on 2017-01-25 . Retrieved 2017-01-04 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1483484400.0
- ^ "XHTM 2.0" . World Wide Web Consortium. July 26, 2006. Archived from the original on November 15, 2008 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML5" . World Wide Web Consortium. July 17, 2009. Archived from the original on January 17, 2009 . Retrieved November 16, 2008 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "W3C XHTML FAQ" . Archived from the original on 2018-02-18 . Retrieved 2018-03-02 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1519945200.0
- ^ "Tags used in HTML" . info.cern.ch . October 1991. Archived from the original on 16 November 2019 . Retrieved 2 March 2023 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ Shankland, Stephen (July 9, 2009). "An epitaph for the Web standard, XHTML 2" . CNET . CBS INTERACTIVE INC. Archived from the original on January 13, 2020 . Retrieved January 13, 2020 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML publication history" . 28 January 2021. Archived from the original on 30 December 2025 . Retrieved 24 December 2025 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML Elements" . w3schools. Archived from the original on 15 March 2015 . Retrieved 16 March 2015 . Wikipedia revision 1377139320, retrieved 2026-11-20 · 1795129200.0
Cite this
"HTML". 1790553177. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377139320