[{"data":1,"prerenderedAt":209,"buildId":210},["ShallowReactive",2],{"page-\u002Flearn\u002Ffrom-html4-to-html5":3},{"id":4,"title":5,"body":6,"description":192,"extension":193,"how_to_steps":194,"hub":182,"meta":195,"navigation":196,"path":197,"primary_keyword":198,"published_at":199,"schema_types":200,"seo":203,"status":204,"stem":205,"updated_at":206,"wave":207,"__hash__":208},"pages\u002Flearn\u002Ffrom-html4-to-html5.md","From HTML4 to the HTML Living Standard: A History",{"type":7,"value":8,"toc":184},"minimark",[9,21,26,36,43,54,57,61,64,67,70,74,81,91,97,112,137,144,148,151,154,162,166,174,177],[10,11,12,13,16,17,20],"p",{},"The move from HTML4 to HTML5 changed how a browser is expected to read a page.\nThat matters most when the markup contains a mistake.\nIt also made room for things authors had been building with scripts, plug-ins, and generic containers.\nMuch of the vocabulary stayed familiar.\nYou can still put a paragraph in ",[14,15,10],"code",{}," and follow a link made with ",[14,18,19],{},"a",".",[22,23,25],"h2",{"id":24},"html4-and-the-xhtml-detour","HTML4 and the XHTML detour",[10,27,28,29,32,33,35],{},"The World Wide Web Consortium (W3C) published HTML 4.01 as a Recommendation in December 1999.\nThe specification's Strict document type left out deprecated presentation features such as the ",[14,30,31],{},"font"," element.\nTransitional let authors keep them as they moved toward CSS.\nThe third type, Frameset, was for pages that split the browser window into frames.\nEach frame held its own document.\nA page with blue body text could keep the same appearance.\nThe color moved out of repeated ",[14,34,31],{}," tags and into a stylesheet.",[10,37,38,39,42],{},"Then came XHTML 1.0, published by the W3C in January 2000.\nIt reformulated HTML 4 in XML.\nWriting it meant following XML syntax rules.\nYou had to quote attribute values, close elements, and write names in lowercase.\nThe familiar ",[14,40,41],{},"\u003Cbr \u002F>"," spelling came from writing an empty element in XML syntax.\nIt did not tell a browser by itself to switch to an XML parser.",[10,44,45,46,49,50,53],{},"The response's media type determined which parser the browser used.\nA compatible XHTML 1.0 page could be served as ",[14,47,48],{},"text\u002Fhtml",".\nBrowsers then used their HTML parser.\nA page served as ",[14,51,52],{},"application\u002Fxhtml+xml"," used XML processing.\nThere a mismatched tag is a well-formedness error.\nThe browser can stop displaying the page normally.\nIf you only tested the first version and saw a page, that did not prove the same file would work when served as XML.",[10,55,56],{},"XHTML 2 was a separate W3C effort to change the language further.\nIt never became a W3C Recommendation.\nFor people building ordinary sites, the open question was how to improve HTML without asking them to rewrite working pages.",[22,58,60],{"id":59},"the-whatwg-split","The WHATWG split",[10,62,63],{},"The history section of the HTML Living Standard traces the split to a W3C workshop in 2004.\nA proposal to extend HTML and its document model for web applications was rejected.\nWork centered on XML continued instead.\nPeople from Apple, Mozilla, and Opera formed the Web Hypertext Application Technology Working Group, or WHATWG.\nThey kept working on HTML outside the W3C process.\nTheir approach started from what browsers and sites already did.\nIt aimed to make browser behavior more consistent.",[10,65,66],{},"That approach mattered if you had to keep a form working on an old site.\nYou also had to make the next version easier to build.\nThe browser could keep handling the old page.\nAuthors and browser makers gained a common description of how newer form controls and existing markup should behave.\nWriting that description meant spelling out what browsers do with bad input.\nIt was not enough to describe the pages authors ought to write.",[10,68,69],{},"In 2007, the W3C began a new HTML working group.\nFor a time the groups worked from a shared specification.\nTheir publication goals later diverged.\nThe W3C wanted a completed Recommendation.\nThe WHATWG kept updating a living specification.\nThe W3C published HTML5 as a Recommendation in October 2014.\nThat date marks a standards publication.\nIt does not mean every browser added every feature that month.\nIt does not mean work on HTML stopped then.",[22,71,73],{"id":72},"what-html5-actually-changed","What HTML5 actually changed",[10,75,76,77,80],{},"The first line of a modern HTML document can be ",[14,78,79],{},"\u003C!doctype html>",".\nIt tells browsers to use standards mode, their rules for rendering modern pages.\nIt is not the compatibility mode used for some old markup.\nThere is no number to increment in that line for a new HTML release.\nFor comparison, here is an HTML 4.01 Strict document followed by a modern version of the same notice.",[82,83,89],"pre",{"className":84,"code":86,"language":87,"meta":88},[85],"language-html","\u003C!DOCTYPE HTML PUBLIC \"-\u002F\u002FW3C\u002F\u002FDTD HTML 4.01\u002F\u002FEN\"\n  \"http:\u002F\u002Fwww.w3.org\u002FTR\u002Fhtml4\u002Fstrict.dtd\">\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Ctitle>Library notice\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cdiv id=\"content\">\n    \u003Ch1>Oak Street entrance closed\u003C\u002Fh1>\n    \u003Cp>Use the courtyard entrance today.\u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[14,90,86],{"__ignoreMap":88},[82,92,95],{"className":93,"code":94,"language":87,"meta":88},[85],"\u003C!doctype html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Cmeta charset=\"utf-8\">\n  \u003Ctitle>Library notice\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cmain id=\"content\">\n    \u003Ch1>Oak Street entrance closed\u003C\u002Fh1>\n    \u003Cp>Use the courtyard entrance today.\u003C\u002Fp>\n  \u003C\u002Fmain>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n",[14,96,94],{"__ignoreMap":88},[10,98,99,100,103,104,107,108,111],{},"Save the samples as separate files and open them in a browser.\nBoth give you the same notice.\nBoth keep ",[14,101,102],{},"id=\"content\"",", so an existing link to ",[14,105,106],{},"#content"," still has a target.\nIn the modern document, ",[14,109,110],{},"main"," also identifies the page's main content as a landmark for assistive technology.\nThe shorter encoding declaration tells the browser to read the new file as UTF-8.\nSave it in that encoding so the declaration and file agree.",[10,113,114,115,118,119,122,123,118,126,129,130,132,133,136],{},"HTML5 brought elements such as ",[14,116,117],{},"nav"," and ",[14,120,121],{},"article"," to describe structure.\nIt added ",[14,124,125],{},"audio",[14,127,128],{},"video"," for media.\nBrowsers could play supported formats without a separate plug-in.\nA library could use ",[14,131,128],{}," for its tour, but someone still had to provide captions and test playback.\nNew input types such as ",[14,134,135],{},"email"," let the browser check the shape of an address in a form.\nThat does not prove the mailbox exists.",[10,138,139,140,143],{},"The less visible change was the parsing algorithm.\nThat is the set of steps browsers use to turn source text into a document tree.\nFor example, a list may start before an open paragraph is closed.\nThe HTML parser ends the paragraph when it reaches the list.\nLeaving out the ",[14,141,142],{},"\u003C\u002Fp>"," before the list is allowed in that case.\nBut writing it after the list would leave a stray end tag.\nThe parsing rules cover both cases, including what a browser must do when a tag is out of place.",[22,145,147],{"id":146},"the-living-standard-today","The Living Standard today",[10,149,150],{},"In 2019, the W3C and WHATWG signed a memorandum of understanding.\nThey agreed to collaborate on a single version of HTML and the Document Object Model, or DOM.\nThe WHATWG HTML Living Standard is the ongoing specification.\nUse its sections on syntax and elements to check an HTML rule today.\nUse the dated W3C Recommendations when you need to know what a particular release said.\nThe DOM represents a page as a tree and provides the interfaces that scripts use to inspect or change it.",[10,152,153],{},"Authors still say \"HTML5\" when they mean modern HTML, especially in older tutorials.\nIf a tutorial describes a feature as new, check which browsers your readers use before relying on it.\nA feature's place in the specification describes how it should work.\nBrowser support decides whether you can use it for a task today without a fallback.",[10,155,156,157,161],{},"If you are updating an old site, try the short doctype and modern markup on a copy first.\nA switch away from a doctype that triggered quirks mode can change the layout.\nThis happens even if you leave the visible text alone.\nCheck links to existing headings, compare layout at different widths, and test the forms before replacing the original.\nIf the distinction between the source file and the document tree is new, start with ",[19,158,160],{"href":159},"\u002Flearn\u002Fwhat-is-html","what HTML is",".\nThen inspect the two samples in your browser's developer tools.",[22,163,165],{"id":164},"primary-sources-from-our-archive","Primary sources from our archive",[10,167,168,169,173],{},"The ",[19,170,172],{"href":171},"\u002FHTMLDraft.html","primary source in our archive"," is a February 2010 capture of a draft titled \"HTML 4.1\" by HTML4All.\nIt records a proposal from the site's contributors, not a W3C or WHATWG publication or an official release between HTML 4.01 and HTML5.\nThe capture keeps the draft as a historical document.\nUse it to see what an author was proposing.\nDo not use it as a reference for writing HTML now.",[10,175,176],{},"Read its opening paragraphs next to the table.\nThe table separates presentation, the document's objects, parsing, and the text representation of the document.\nThe draft calls its proposed text form \"cHTML\" and calls a proposed way of parsing text \"tHTML parsing.\"\nIt uses \"HTML\" in a narrower sense there.\nThe word covers the resulting document objects.\nIn some passages it also covers the interfaces used to change them.\nThose names belong to the draft and do not describe versions you need to choose between when writing a page today.",[10,178,179,180,20],{},"The draft's section on conformance checkers separates checks on which attributes are allowed or required from warnings about the wording of alternate text.\nA section on converters also warns against inventing dummy alternate text to satisfy a checker.\nThat is a concrete point of comparison with tools today.\nA report can tell you when markup is missing.\nYou still have to look at the image and decide what a reader needs to know.\nFor more practice with current markup, return to the ",[19,181,183],{"href":182},"\u002Flearn","Learn HTML hub",{"title":88,"searchDepth":185,"depth":185,"links":186},2,[187,188,189,190,191],{"id":24,"depth":185,"text":25},{"id":59,"depth":185,"text":60},{"id":72,"depth":185,"text":73},{"id":146,"depth":185,"text":147},{"id":164,"depth":185,"text":165},"How HTML evolved from HTML4 through HTML5 to the Living Standard, told through the 2007-2009 debates our archive preserved.","md",null,{},true,"\u002Flearn\u002Ffrom-html4-to-html5","html4 to html5","2026-12-01T05:35:41Z",[201,202],"Article","BreadcrumbList",{"title":5,"description":192},"draft","learn\u002Ffrom-html4-to-html5","2026-12-01T06:15:12Z","1","wZbg0kGtURSGMqve48J6t-MZtBk_K1iXyj-H_n-WRkE",1796185435706,"a1d53563-3a78-4678-8315-e5bd6a5bd80c"]