An HTML iframe is used to embed another document within the current HTML document.
Syntax
<iframe src=”url” title=”description”></iframe>
Example:
1 2 3 4 5 6 7 8 9 |
<!DOCTYPE html> <html> <body> <h2>Iframes</h2> <iframe src="https://abc.com" height="250" width="360" title="Iframe Example"></iframe> </body> </html> |
src attribute refer to the target need to be fetch inside iframe.
title refer to frame title
height & width refer to size of the iframe need to be loaded inside parent window.