img – image - HTML5 (2024)

imgimage # T

The img element represents an image.

Permitted attributes #

global attributes
Any attributes permitted globally.
src = Non-empty URL potentially surrounded by spaces #
A URL referencing a non-interactive, optionally animated, image that is neither paged nor scripted.
alt = normal character data #
The fallback content for the image.
height = non-negative integer #
The height of the image, in CSS pixels.
width = non-negative integer #
The width of the image, in CSS pixels.
usemap = hash-name reference #
A hash-name reference to a map element with which to associate the image.
ismap = "ismap" or "" (empty string) or empty #
Specifies that its img element provides access to a server-side image map.
border = zero OBSOLETE#
Specifies that its img element represents a borderless image.
The border attribute on the img element is obsolete. Consider specifying “img { border: 0; }“ in CSS instead.

The literal string "0".

Additional constraints and admonitions #

  • The element imgwith the attribute usemap must notappear as a descendant of the a element.
  • The element imgwith the attribute usemap must notappear as a descendant of the button element.
  • The img element with the ismap attribute set must have an ancestor a element with the href attribute.
  • The longdesc attribute on the img element is obsolete.Use a regular a element to link to the description.
  • The name attribute on the img element is obsolete.Use the id attribute instead.
  • The align attribute on the img element is obsolete.Use CSS instead.
  • The hspace attribute on the img element is obsolete.Use CSS instead.
  • The vspace attribute on the img element is obsolete.Use CSS instead.
  • The border attribute on the img element is obsolete.Use CSS instead.

Tag omission #

The img element is a void element. An img element must have a start tag but must not have an end tag.

Permitted parent elements #

any element that can contain phrasing elements

DOM interface #

[NamedConstructor=Image(), NamedConstructor=Image(in unsigned long width), NamedConstructor=Image(in unsigned long width, in unsigned long height)]interface HTMLImageElement : HTMLElement { attribute DOMString alt; attribute DOMString src; attribute DOMString useMap; attribute boolean isMap; attribute unsigned long width; attribute unsigned long height; readonly attribute unsigned long naturalWidth; readonly attribute unsigned long naturalHeight; readonly attribute boolean complete;};
img – image - HTML5 (2024)
Top Articles
5 Best Self-Defense Moves & Techniques for Beginners | FightCamp
Tomato blight
Rosy Boa Snake — Turtle Bay
Bank Of America Financial Center Irvington Photos
Hotels Near 625 Smith Avenue Nashville Tn 37203
Booknet.com Contract Marriage 2
Ashlyn Peaks Bio
Ub Civil Engineering Flowsheet
2022 Apple Trade P36
Craigslist In Fredericksburg
Nwi Police Blotter
Www Thechristhospital Billpay
Texas (TX) Powerball - Winning Numbers & Results
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Aces Fmc Charting
Superhot Unblocked Games
Sams Early Hours
Google Doodle Baseball 76
Invitation Homes plans to spend $1 billion buying houses in an already overheated market. Here's its presentation to investors setting out its playbook.
Katie Sigmond Hot Pics
Craigslist St. Cloud Minnesota
Sunset Time November 5 2022
Trivago Myrtle Beach Hotels
Bn9 Weather Radar
Mandy Rose - WWE News, Rumors, & Updates
Strange World Showtimes Near Savoy 16
Filmy Met
Kiddie Jungle Parma
Mosley Lane Candles
Scat Ladyboy
Swgoh Boba Fett Counter
Human Unitec International Inc (HMNU) Stock Price History Chart & Technical Analysis Graph - TipRanks.com
Rust Belt Revival Auctions
Kaiju Paradise Crafting Recipes
Scioto Post News
Lake Dunson Robertson Funeral Home Lagrange Georgia Obituary
Orangetheory Northville Michigan
Ny Post Front Page Cover Today
Philadelphia Inquirer Obituaries This Week
Bella Thorne Bikini Uncensored
ENDOCRINOLOGY-PSR in Lewes, DE for Beebe Healthcare
Plead Irksomely Crossword
Spectrum Outage in Genoa City, Wisconsin
888-333-4026
Jason Brewer Leaving Fox 25
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Andrew Lee Torres
Saline Inmate Roster
Juiced Banned Ad
Sound Of Freedom Showtimes Near Amc Mountainside 10
Tìm x , y , z :a, \(\frac{x+z+1}{x}=\frac{z+x+2}{y}=\frac{x+y-3}{z}=\)\(\frac{1}{x+y+z}\)b, 10x = 6y và \(2x^2\)\(-\) \(...
Fetllife Com
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 5769

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.