What Does the Src Attribute Do in Html

Dan Gold

Written by Dan

The src attribute is used in HTML to specify the location of an external file that will be loaded into a web page. For example, if you wanted to include a video on your web page, you would use the src attribute to specify the location of the video file.

The src attribute can also be used to specify the location of an image file or a script file.

Last updated

November 16th, 2022