HTML and CSS Reference
In-Depth Information
crossorigin="anonymous|use-credentials "
Not in HTML 4.01 . On a site that allows cross-origin access files, this attribute indicates
if requests from other domains must present credentials to access the image.
height=" number
number "
Specifies the height of the image in pixels. It is not required, but is recommended to speed
up the rendering of the web page.
ismap ( ismap="ismap" in XHTML)
Indicates that the graphic is used as the basis for a server-side image map (an image con-
taining multiple hypertext links).
src=" URL
URL "
Required . Provides the location of the graphic file to be displayed.
srcset=" image candidate string
image candidate string "
WHATWG only . Allows authors to specify alternative images for different viewport
sizes and higher pixel densities. The value is a comma-separated list of image locations
with a descriptor that specifies the device requirements for its use. For example, src-
set= " image-HD.jpg 2x, image-phone.jpg 240w " instructs user agents to use image-
HD.jpg if the display has double pixel density (such as the Apple Retina display) and to
use image-phone.png if the device width is up to 240 pixels.
usemap=" URL
URL "
Specifies the map containing coordinates and links for a client-side image map (an image
containing multiple hypertext links).
width=" number
number "
Specifies the width of the image in pixels. It is not required but is recommended to speed
up the rendering of the web page.
Search WWH ::




Custom Search