HTML iframes tag

Learn how to embed another web document to the current web document using HTML iframes tag. You can add another webpage but cannot change or modify CSS. The iframes are often used by many online advertising companies to create ads.

Syntax

Example

Output


List of attributes of HTML iframes tag

Used to give the width of iframe.

Used to give the height of the iframe.

Sr. No.iframes attributesDescription
1srcUsed to give the target url of webpage to show on the given web page.
2width
3height
4nameUsed to give the name of iframe.
5frameborderUsed to give border of the iframe.

Resources and References

1. W3C Specification.
2. HTML living standard
3. W3C project using Github

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.