HTML src attribute

Last Updated : 29 May, 2026

The HTML src attribute specifies the source or location of an external resource to be loaded by an element. It is commonly used to link images, media files, scripts, and embedded content.

  • Defines the URL or path of the resource to be loaded.
  • Used with elements such as ,