How to represent an image in HTML ?

About

An image in HTML can be represented by:

  • the img element (from raster to svg image)
  • the svg element
  • the picture element

The img and picture element can be used to defined responsive image (ie a serie of image with different dimension for each screen size).

See How to create responsive images in HTML ? (from A to Z)


Powered by ComboStrap