Changes
Changes since HTML 5.1
This section summarises changes between this specification and [HTML 5.1].
Errata corrected
- HTML4 system identifiers are accidentally non-conforming in HTML5.1
- Restores the system identifiers in the HTML syntax section, to use http:// instead of https://.
Changes since HTML 5.0
This section summarises substantial substantive changes between this specification and [HTML5].
Features added
-
The
pictureandsrcsetattributes allow responsive image selection. -
The
detailsandsummaryelements enable authors to provide extended information that users can choose whether to read. -
The
menuitemandtype="context"attribute value enable authors to add functionality to the browser’s context menu. -
The
requestAnimationFrameAPI allows for more efficient animation. -
enqueueJobandnextJobhelp explain Promise resolution in terms of microtasks. -
The
revattribute for links, primarily to support RDFa (previously defined in HTML 4). -
HTMLMediaElementandsrcObjectobjects. -
Enable cross-origin
trackandEventSourceand cross-origin content forImageBitmapincanvas. -
event-source-error,event-track-errorandevent-track-loadevents for media fetching. -
onrejectionhandledandonunhandledrejectionand APIs for tracking promise rejection. -
HTMLTableCaptionElement,HTMLTableSectionElement,HTMLTableRowElement, for HTML table elements. -
history.scrollRestorationto control where a users' view is directed when navigating through their history. -
IDL
[SameObject], for some objects that return collections. -
Add "noopener" to
relandwindowto allow for browsing contexts to be separated. -
nonceattribute onscriptandstyleto support the use of Content Security Policy.
Features removed
-
appCache. -
Media Controllers.
-
The
commandAPI. -
The
usemapattribute onobject. -
The
accessKeyLabelIDL attribute. -
The
formattribute is no longer valid forlabel. -
The
multipleattribute oninput type="range". -
hreflangandtypeattributes onarea. -
The use of nested
sectionelements each with anh1to create an outline. -
Special handling of
isindexin form submission. -
navigator.yieldForStorageUpdates()and the Storage mutex. -
Disallow
tfootbeforetbody. -
[Exposed=Window]for HTMLHyperLinkElementUtils,[Exposed=Window, Worker]for DOMStringMap and IDLDate.
Changes to existing features
-
The
accesskeytakes a single character as a value (as in HTML 4). -
headerandfooterelements can be nested, if each level is within a sectioning element. -
optionelements can be empty. -
The
mousewheelevent is calledwheel. -
The
valueattribute ofinput type="submit"is translatable. -
A
figcaptioncan appear anywhere within afigure. -
Having
title, or writing email to a friend does not make animgmissingaltconformant. -
The content of
timeis phrasing content, or text. -
Blank
altonareaelements with duplicatehrefattributes is no longer conformant. -
When navigating internally, the next search for a link etc starts from where the navigation moved to.
-
imgand related elements supportwidth="0". -
.tFootand.createTFoot()always insert at the end of a table -
fieldsetandnamedItemmakeHTMLCollections notHTMLFormControlsCollections andHTMLOptionsCollections. -
frameElementcan returnnull. -
For images which don’t resolve
currentSrcis the URL given to the resolver, not necessarily the absolute URL. -
scriptIDL attributes reflect. -
meta refreshallows;orurl=to be optional. -
navigator.javaEnabled()is a method. -
fileCallbackis calledblobcallback. -
The
toBlob()callback is non-nullable. -
originonHTMLHyperlinkElementUtilsandLocationis readonly. -
The first
titlechild of an SVG is its title, not the last. -
window.open()can returnnull