• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in HTML by
Q:
What is the use of an iframe tag?

1 Answer

0 votes
by
An iframe is used to display a web page within a web page.

Syntax:

<iframe src="URL"></iframe>  

Example:

<iframe src="demo_iframe.html" width="200px" height="200px"></iframe>  

Target to a link:

<iframe src="http://www.javatpoint.com" name="iframe_a"></iframe>

Related questions

0 votes
asked Feb 11, 2020 in HTML by rahuljain1
0 votes
asked Jan 29, 2021 in HTML by rajeshsharma
...