1. Computing & Technology

Discuss in my forum

HTML Attributes - src

By , About.com Guide

src:

The src attribute defines URI or location of the element being requested, be it an image, a script, or another web page. It is short for “source.”

Used with HTML Tags:

Content:

URI
The URI should point to the image, sound file, video file, web page or script that is the source of the element.

Default:

There really isn't a default value for the src attribute. You must specify a URI or the web page will display an error.

Deprecated:

No

DTD:

  • HTML 4.01 Standard, Strict, and Frameset
  • XHTML 1.0 Standard and Frameset
  • HTML 5

©2012 About.com. All rights reserved.

A part of The New York Times Company.