/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: src

[this page | pdf | back links]

The HTML src attribute indicates the URL of a resource. It applies to <audio>, <embed>, <iframe>, <img>, <input>, <script>, <source>, <track> and <video> elements.

 

Valid attribute values (when used with <audio>, <embed>, <iframe>, <img>, <script>, <source>, <track> and <video> elements) include:

 

Value

Description

URL

URL of source

 

Valid attribute values (when used with <input> elements) include:

 

Value

Description

URL

URL of image to use as a submit button (only for type = image)

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile