<iframe> tag specifies an inline frame.
An inline frame is used to embed another document within the current HTML document.
<iframe src="url" title="description"></iframe>
HTML File Paths
A file path describes the location of a file in a web site’s folder structure.
File paths are used when linking to external files, like:
- Web pages
- Style sheets
File Path Examples:
|<img src=”picture.jpg”>||The “picture.jpg” file is located in the same folder as the current page|
|<img src=”images/picture.jpg”>||The “picture.jpg” file is located in the images folder in the current folder|
|<img src=”/images/picture.jpg”>||The “picture.jpg” file is located in the images folder at the root of the current web|
|<img src=”../picture.jpg”>||The “picture.jpg” file is located in the folder one level up from the current folder|
|src||URL||Specifies the address of the document to embed in the <iframe>|
|srcdoc||HTML_code||Specifies the HTML content of the page to show in the <iframe>|
|width||pixels||Specifies the width of an <iframe>. Default width is 300 pixels|