Newly supported HTML elements and attributes

Microsoft Edge for Windows 10 adds supports for new HTML features per the World Wide Web Consortium (W3C) specifications for HTML5 and HTML 5.1. Below are lists of the new attributes and elements recently supported by Microsoft Edge.

For a list of all HTML elements supported in Microsoft Edge, see HTML elements.

Attributes

Attribute Related Element Description
download <a> Signifies that the resource pointed to in an <a> element link should be downloaded by the browser, and saved as a local file, rather than navigating to it.
oninvalid <input> Executes a specified JavaScript alert when an input element is invalid.
selectionDirection <input> Gets the string corresponding to the current selection's direction. Depending on which direction the selection is being made, possible values are "forward" for a forward selection, "backward" for a backward selection, and "none".
srcset <img> Specifies a list of one or more possible images to display based on the pixel density of the user's display, or the viewport width.
sizes <img> Specifies how large an image will render within a layout.
type=color <input> Creates a color entry control for picking a color.
type=datetime-local <input> Creates a date and time entry control. This control is able to set date-time values (year, month, day, hour, minute, second).
type=time <input> Creates a time entry control.This control is able to set time values (hour, minute, second).

Elements

Element Description
<datalist> Contains a set of <option> elements to provide a pre-defined set of choices.
<main> Represents the main content of the body of a document or application. Specifying main content is used to indicate content that is unique to the document, and excludes repeated content over other documents such as navigation links.
<meter> Represents a scalar measurement within a specified range, or a fractional value. This information is displayed in the form of a horizontal bar.
<output> Represents the result of a calculation or user action.
<picture> A container that contains multiple <source> elements to its contained <img> element. The browser will select which source to use based on numerous factors such as screen pixel density, viewport size, and file type.
<template> Used to declare fragments of HTML that can be cloned and inserted into the document by script. It is the client side approach to handling on demand resource fetching and late rendering of some parts of the DOM, which can be reused.
<time> Represents time on a 24 hour clock or an exact date.

Introducing srcset, our first step towards fully responsive images in Microsoft Edge

Microsoft Edge and Web Components

Using extended srcset and the picture element to tailor your image to every device and layout