Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

What is an iframe and How it works

Tags: iframe frame html

In this article, you will learn what is an Iframe in Html and how to use it. The

What is an iframe used for?

An iframe is used to embed another web page within the current web page. iFrames are most often used to insert dynamic content like ads, documents, videos, widgets, and interactive media. The ‘src‘ attribute is used to specify the URL of the document that occupies the

Syntax:

Setting up Height and Width:

The height and width attributes are used to specify the size of the


iFrame Attributes

Find the below list of all attributes available in it:-

  • src=”(URL of initial iframe content)”.
  • name=”(name of frame, required for targeting)”.
  • longdesc=”(link to long description)”.
  • width=”(frame width, % or pixels)”.
  • height=”(frame height, % or pixels)”.
  • align=”[ top | middle | bottom | left | right | center ] (frame alignment, pick two, use comma)”.
  • frameborder=”[ 1 | 0 ] (frame border, default is 1)”.
  • marginwidth=”(margin width, in pixels)”.
  • marginheight=”(margin height, in pixels)”.
  • scrolling=”[ yes | no | auto ] (ability to scroll)”.

iFrame Example


Other References: https://www.w3schools.com/tags/tag_iframe.ASP

Conclusion

I hope you liked this article on what is an iframe in Html: definition and example. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

The post What is an iframe and How it works appeared first on DotNetTec.



This post first appeared on Asp Dot Net Tricks And Tips, Dot Net Coding Tips, Google Maps API Developer, please read the originial post: here

Share the post

What is an iframe and How it works

×

Subscribe to Asp Dot Net Tricks And Tips, Dot Net Coding Tips, Google Maps Api Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×