image

The image SVG element specifies that the contents of a complete file are to be rendered into a given rectangle within the current user coordinate system.

Syntax

Attributes

crossorigin

Specifies how crossorigin requests are handled.

Value
[ anonymous | use-credentials ]?
Default
(No CORS)

height

Specifies the height of the element.

Value
auto | <length-percentage>
Default
auto

href

Specifies a Uniform Resource Locator (URL) reference to the element.

Value
<url>
Default
(none)

preserveAspectRatio

Specifies whether or not to force uniform scaling.

Value
<align> <meetOrSlice>?
Default
xMidYMid meet

width

Specifies the width of the element.

Value
auto | <length-percentage>
Default
auto

x

Specifies the x-coordinate of the element.

Value
<length-percentage>
Default
0

y

Specifies the y-coordinate of the element.

Value
<length-percentage>
Default
0

Examples

crossorigin

anonymous

use-credentials

height

auto

<length-percentage>

href

<url>

preserveAspectRatio

<align>

<meetOrSlice>

width

auto

<length-percentage>

x

<length-percentage>

y

<length-percentage>

Internal

foreignObject

External

World Wide Web Consortium (W3C)

Home Menu