HTML Iframes Examples

Example 1: This example illustrates the use of an iframe tag which is used to display a webpage inside the current web page.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>HTML iframe Tag</title>
</head>

<body style="text-align: center">
    <h2>HTML iframe Tag</h2>
    <iframe src=
"https://media.w3wiki.org/wp-content/uploads/20240206111438/uni2.html"
            height="370"
            width="400">
    </iframe>
</body>

</html>

Output:


HTML Iframes Example Output


HTML Iframes

HTML iframes offer a powerful way to embed external content, such as videos, maps, or other webpages, directly into your own webpage. This article provides an in-depth exploration of HTML iframes, their syntax, and how they can be used to enhance your web development projects.

Similar Reads

What are HTML Iframes?

An iframe is an HTML document embedded inside another HTML document. The