HTML Introduction

HTML Basic Syntax

HTML Block Element

HTML Formatting

HTML Quotation

HTML Links

HTML List

HTML Table

HTML Audio

HTML Video

HTML Image

HTML Iframe

HTML Favicon

HTML Form

HTML Input Types

HTML Marquee

HTML Meta tag

Learn CSS

Learn Javascript

Learn Django

HTML iframe

What is iframe?

It is a frame in a web page where we can show image, video, audio, etc.

How to create iframe?

For create an iframe use iframe tag. In the iframe tag, there is a attribute name src means source .We pass the path/name.extension in src attribute. After giving correct path, that thing what we want show on our iframe, will be displayed in the iframe. If the html file and that file what we want to show, are in the same folder then don't need to pass the path. But if both are in different folders then must give the path. We can also give a link if we want take file from the internet.

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

<iframe src="my_audio.mp4"></iframe>
<iframe src="F:\HTML/image.jog" ></iframe>

</body>
</html>

Some attributes of iframe tag:

1. height: It is used to adjust height of the iframe.
2.width: It is used to adjust width of the iframe.

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

<iframe src="my_audio.mp4" height="500" width="500"></iframe>

</body>
</html>

CodersAim is created for learning and training a self learner to become a professional from beginner. While using CodersAim, you agree to have read and accepted our terms of use, privacy policy, Contact Us

© Copyright All rights reserved www.CodersAim.com. Developed by CodersAim.