How To Create an Inline Frame Using HTML5

admin_img Posted By Bajarangi soft , Posted On 09-10-2020

In this article, we will create an inline iframe by using a <iframe> tag in a document. It represents a fixed rectangular area within the document in which the browser can display a separate document along with scroll bars and borders

Inline Frame

Inline frames are used to embed another document within the current HTML page.
Syntax :

<iframe src="URL"></iframe>
Example-1 
<!DOCTYPE html>
<html>

<head>
    <title>
        How to create an inline
        frame using HTML5?
    </title>
</head>

<body>
<h2>Hlo Bajarangi Soft</h2>

<h2>
    How to create an inline
    frame using HTML5?
</h2>

<p>Content goes here</p>

<iframe src=
                "logo.jpg"
        height="300" width="400">
</iframe>

</body>

</html>
Example-2
<!DOCTYPE html>
<html>

<head>
    <title>
        How to create an inline
        frame using HTML5?
    </title>
</head>

<body>
<h2>Hlo Bajarangi Soft</h2>

<h2>
    How to create an inline
    frame using HTML5?
</h2>

<iframe height="300" width="350"
        src="
logo.jpg"
        name="iframe_a"></iframe>

</body>

</html>

Related Post