HTML img Tag - Tutorials Point

[Pages:2]HTML TAG



Copyright ?

Description

The HTML tag is used to put an image in an HTML document.

Example

HTML Tag

This will produce following result:

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML tag also supports following additional attributes:

Attribute align

alt border crossorigin height hspace ismap

Value top bottom middle left right text pixels anonymous usecredentials pixels or % pixels

URL

Description Deprecated-Specifies the alignment for the image.

Specifies alternate text Deprecated - Specifies the width of the image border. It allows images from third-party sites that allow crossorigin access to be reused with canvas. Specifies the height of the image. Deprecated - Amount of white space to be inserted to the left and right of the object. Defines the image as a server-side image map.

longdesc

src usemap vspace width

text

URL #mapname pixels pixels or %

Deprecated-Specifies a URI/URL of a long description this can elaborate on a shorter description specified with the alt attribute. the url of an image Defines the image as a client-side image map and used alongwith and tags. Deprecated - Amount of white space to be inserted to the top and bottom of the object. Sets the width of an image in pixels or in %.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

Chrome Firefox IE

Yes

Yes

Yes

Opera Yes

Safari Yes

Android Yes

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download