

The intrinsic height of the image, in pixels. Media query of the resource's intended media. Please note that sizes will have its effect only if width dimension descriptors are provided with srcset instead of pixel ratio values (200w instead of 2x for example). Before laying the page out, the browser uses this information to determine which image is defined in srcset to use. Each source size consists of a comma-separated list of media condition-length pairs. sizesĪllowed if the source element's parent is a element, but not allowed if the source element's parent is an or element.Ī list of source sizes that describes the final rendered width of the image represented by the source. If the browser does not support srcset, then src will be used for the default source. If the sizes attribute is present, then a width descriptor must be specified for each string. The browser chooses the most adequate image to display at a given point of time. Among the list, the value of each descriptor must be unique. The two types of descriptors should not be mixed together and only one should be used consistently throughout the list. The default value, if missing, is 1x.Įach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. A pixel density descriptor, that is a positive floating number directly followed by "x".The default value, if missing, is the infinity. A width descriptor, which consists of a string containing a positive integer directly followed by "w", such as 300w.Required if the source element's parent is a element, but not allowed if the source element's parent is an or element.Ī list of one or more strings, separated by commas, indicating a set of possible images represented by the source for the browser to use. Required if the source element's parent is an and element, but not allowed if the source element's parent is a element. The MIME media type of the image or other media type, optionally with a codecs parameter. This element includes the global attributes.

Allowing cross-origin use of images and canvas.HTML table advanced features and accessibility.From object to iframe - other embedding technologies.Assessment: Structuring a page of content.
