/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: sizes

[this page | pdf | back links]

The HTML sizes attribute specifies the size of a linked resource. It applies to <img>, <link> and <source> elements.

 

Valid attribute values (when used with <link> elements) include:

 

Value

Description

heightxwidth

Specifies one or more sizes for linked icon, in the form e.g. sizes="16x16" or sizes="16x16 32x32". Is only relevant for rel=icon

any

Icon is scalable

 

Note: most browsers do not currently seem to support the sizes attribute (at the time of writing it was an experimental attribute for <link> elements). For <source> elements it is only relevant when the <source> element is a direct child of a picture element.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile