English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The src attribute specifies the address of the document to be embedded in the <iframe>.
A simple use of <iframe>:
<!DOCTYPE html> <html> <head> <title>HTML: <iframe> src Attribute - Basic Tutorial Website oldtoolbag.com</title> <body> <iframe src="/"> <p>Your browser does not support iframes.</p> </iframe> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the src attribute.
The src attribute specifies the address of the document to be embedded in the <iframe>.
None.
<iframe src="URL">
Value | Description |
---|---|
URL | Specifies the URL of the document to be embedded in the iframe. Possible values: Absolute URL - Points to another website (such as SRC =“http://www.example.com/default.htm”) Relative URL - Points to a file within a website (such as SRC =“default.htm”) |