What is the purpose of iframe in HTML?
What is the purpose of iframe in HTML?
Iframe is called as inline frame that places one HTML document in a frame. It is different from the object element as the inline frame can be made in the target frame. The target frame consists of the links that is defined by other elements used in the web page. Iframe is used to focus on printing or viewing of the source. Iframe can be used by the user in those browser that supports it. If they have used iframe also then the incompatible browser won't display the actual but display of the alternative text will take place. The content of the iframe is being written in between <iframe>.........</iframe>.*****
The sample example is given below:
<iframe src="http://www.abc.com"></iframe>
Tips and Notes. Tip: To deal with browsers that do not support <iframe>, add a text between the opening <iframe> tag and the closing </iframe> tag.
The <iframe> creates an inline frame, which embeds an independent HTML document into the current document.
an iframe (short for inline frame) in HTML is used to embed another document within the current HTML document. This allows you to display content from another source, such as a webpage, video, or interactive media, directly on your webpage. The iframe tag creates a window through which the embedded content is displayed, and you can specify the source (URL) of the content, as well as other attributes like width, height, and border. This is commonly used to include content from different domains, such as embedding a YouTube video on a webpage, or displaying a Google Map.
|
Bookmarks