HTML5 iframes...

HTML5 <iframe> Tag:

iframes defines an inline frame. It enables you present another HTML document within the same window. Typically the iframe takes up a small portion of the document. Inline frames are often used in audio, video & advertising. It is a paired tag.


Syntax: 

<iframe>-------------</iframe>


Attributes    Parameters

src              The path of url/image

scrolling        auto, yes, no

align             left,right,top,middle,bottom

height             pix or %

width               pix or %

name               name 

frameborder       1,0


Example 1:

<html>    
<head>
   </head>
<body>
<iframe src="https://www.drysrhu.ap.gov.in/">
  <p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>


output:-


Example 2:

<!doctype html>
<body>
<iframe src='https://www.drysrhu.ap.gov.in ' scrolling='yes' align="middle" width="100%" height="100%" name='html5logo'  frameborder='0'>
<p>OOPs Your Browser not supporting iframe tag..</p>
</iframe>
</body>

output:-


 

Example 3:


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML forms</title>
</head>
<body>
  <iframe src="https://www.drysrhu.ap.gov.in" scrolling="no" align="right" 
  width="200px" height="200px" name="frame" frameborder="0">
    <p>OOPs Ur browser iframe not supporting.....................!!</p>
  </iframe>
</body>
</html>


output: