Name

SRC — NN all IE all HTML all

Synopsis

SRC=”URL"

Required

URL to a file containing image data that is displayed through the IMG element. With the exception of specifying a DYNSRC attribute in Internet Explorer for video clips, the SRC attribute is required if you want to see any image in the IMG element space. The browser must be equipped to handle the image MIME type. On the World Wide Web, the most common image formats are GIF and JPEG.

Example

<IMG SRC="surferDude.gif" HEIGHT=100 WIDTH=200>

Value

A complete or relative URL.

Default

None.

Object Model Reference

NN

[window.]document.images[i].src

[window.]document.imageName.src

IE

[window.]document.images[i].src

[window.]document.imageName.src

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.