Several attributes have changed in various ways.
inputnow allows the values
accesskeyglobal attribute now allows multiple characters to be specified, which the user agent can choose from.
formis no longer allowed to have an empty URL.
- In WHATWG HTML, the
methodattribute has a new keyword
dialog, intended to close a
tableonly allows the values “1” and the empty string. In WHATWG HTML, the
borderattribute is obsolete.
thnow has to be greater than zero.
areano longer allows a percentage value of the radius when the element is in the circle state.
objectis no longer said to be relative to the
scriptnow explicitly makes the script execute when the page has finished parsing.
dirglobal attribute now allows the value
formnow supports the value
objectare no longer allowed to contain percentages. They are also not allowed to be used to stretch the image to a different aspect ratio than its intrinsic aspect ratio.
linkis no longer allowed to have an empty URL.
baseis now allowed to contain a relative URL.
- All attributes that take URLs, e.g.
aelement, now support IRIs if the document’s encoding is UTF-8 or UTF-16.
metais no longer said to be used by HTTP servers to create HTTP headers in the HTTP response. Instead, it is said to be a pragma directive to be used by the user agent.
idglobal attribute is now allowed to have any value, as long as it is unique, is not the empty string, and does not contain space characters.
langglobal attribute takes the empty string in addition to a valid language identifier, just like
xml:langdoes in XML.
linknow accepts a media query and defaults to “all”.
- The event handler attributes (e.g.
valueattribute of the
lielement is no longer deprecated as it is not presentational. The same goes for the
typeattributes of the
styleglobal attribute now always uses CSS as the styling language.
tabindexglobal attribute now allows negative values which indicate that the element can receive focus but cannot be tabbed to.
targetattribute of the
areaelements is no longer deprecated, as it is useful in Web applications, e.g. in conjunction with
imgno longer takes a URL, but instead takes a valid hash-name reference to a
The following attributes are allowed but authors are discouraged from using them and instead strongly encouraged to use an alternative solution:
img. It is required to have the value “
0” when present. Authors can use CSS instead.
script. It is required to have the value “
typeattribute. Authors can simply omit it as it has no useful function.
a. Authors can use the