HTML Tutorial
Usage of <iframe>
The <iframe>
tag creates an inline frame that embeds another web page or document within the current page. It allows you to display content from a different source seamlessly within your own page.
Attributes of <iframe>
Examples with <iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/123" frameborder="0" allowfullscreen></iframe>
<iframe src="https://maps.google.com/maps?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=embed" width="800" height="600" frameborder="0"></iframe>
Exploring the <iframe>
Tag
To use the <iframe>
tag effectively, consider the following:
<iframe>
tag using the srcdoc
attribute to support accessibility for users with disabilities.