HTML Iframes: Add Webpage Inside Another Page

html iframes

HTML Iframes tag are used to show webpage inside a webpage. This is useful when you don't want to develop the same page inside other pages. The basic syntax of the iframe is

For Example:

src attribute is used to get the url from where iframes takes the webpage. This webpage is used to display in the decided location using iframe.

Output

HTML iframes tag attributes are listed below

Sr. No.attributes namesDescription
1srcInclude the target url of webpage to show to content of webpage.
2widthDefine the width of iframe element in the webpage.
3heightThis can be used to give the height of the iframe.
4nameNaming of iframe can be define with this attribute.
5frameborderA frameborder is used to give border of the iframe.