Iframe in HTML

iframe tag in HTML

<iframe> in HTML:

Iframe is an HTML tag used to add another website or web page in your website. <iframe> has an opening and a <iframe/> closing tag. src attribute is must to use iframe tag.

src attribute contains your targeted link of a web page. 

<iframe src="https://webxan.com" height="450" height="100%"></iframe>

Iframe Attribute:

There are some common attributes in iframe tag. They are; src, height, width, srcdoc, sandbox etc.

There are some websites like facebook, yahoo doesn't support iframe tag. You can't show these sites with iframe.
<ul>
<li>
<iframe src="http://www.facebook.com/"> </iframe>
</li>
<li>
<iframe src="http://www.yahoo.com/"> </iframe>
</li>
</ul>
Twitter
Facebook
LinkedIn
WhatsApp
Tumblr
Reddit

If you find some necessity, Share the article to your social profile. Thanks a lot!