Attribute nameValuesNotes
crossoriginIndicates that CORS headers should be used in the HTTP request, and specifies whether or not to use credentials.
heightIdentifies the intrinsic height of an image file, in CSS pixels.
srcsetDefines multiple sizes of the same image, allowing the browser to select the appropriate image source.
alignWas previously used to specify the alignment and placement of an image relative to the surrounding text. It has been deprecated and should not be used.
altDefines alternate text, which may be presented in place of the image.
borderPreviously used to define a border on an image element. It has been deprecated and should no longer be used.
controlsToggled media player controls when used in conjunction with the <code>dynsrc</code> attribute. Both attributes are now deprecated.
dynsrcAn early failed attempt to include native video playback in HTML.
hspacePreviously used to add horizontal space on both side of an image. It is now deprecated.
ismapIdentifies an image as a server-side image map. When the containing anchor link is clicked, the coordinates of the mouse will be included in the request.
longdescDefines a URL at which can be found more information about the image. It was written out of the HTML5 specification, but its status is not quite so clear as other deprecated features.
loopPreviously used to specify the number of times a video should play, when used in conjunction with the dynsource attribute. Both attributes have been deprecated.
lowsrcSpecified a smaller or lower-quality version of an image.
nameIdentified the image or provided additional information about it. Deprecated in HTML 4.0 in favor of other attributes.
naturalsizeflagThis attribute does nothing. It was once used by a proprietary software system.
nosaveWas intended to prevent users from downloading an image. Was never a part of the HTML specification, and not widely implemented.
startWas used in conjunction with the dynsrc attribute to add a video that would load in supported browsers in the place of the image that would otherwise be displayed.
suppressUsed by the now-defunct Netscape browser to suppress the display of image prior to image download completion.
usemapSpecifies a client-side image map to be used with the image.
widthIndicates the intrinsic width of the image, in CSS pixels.
srcSpecifies the URL of an image to be displayed.
https://html.com/tags/img/