When writing in HTML, the tag is an inline element used to designate a holding space for linked images. It is useful when you want to link pictures, diagrams, or illustrations to your web pages, either from your collection or another website. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Computer Hope guy

Example result

  • Example of code
  • Example result
  • Attributes
  • Deprecated attributes
  • Compatibility
  • Related information

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each.

Deprecated attributes

A deprecated attribute is one that may function currently but is not supported in going forward. While the attribute may work with the current version of HTML, it will eventually be phased out. It is better to avoid using these attributes to help future-proof your website.

Compatibility

Browser, Client-side, Compatibility, HTML canvas tag, Image map, Server-side, Web design terms, Web page, Whitespace

  • How to link an image to another page in HTML.
  • How to create a new window in HTML for a single image.
  • How to create images that are right-aligned on a web page.
  • How to make an animated GIF image.
  • HTML and web design help and support.