What does Iframe element do?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What does Iframe element do??

I would be happy if you share me a code...

15th Feb 2018, 8:54 AM
Sachin Kumar
Sachin Kumar - avatar
23 Answers
+ 35
in frames <frameset> element is used instead of the <body> element. General form of frames :- <noframes> <body> <p>frameset not supported</p> </body> </noframes> <frameset cols="50px,20px"> <!--50px & 20px are the size of frames--> <frame src=" "/> <frame src=" "/> </frameset> </html>
15th Feb 2018, 9:43 AM
Elizabeth🌸
Elizabeth🌸 - avatar
15th Feb 2018, 2:40 PM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 28
inline frame is known as iframe.frame not supported in html5. syntax:- <iframe src="put here iframe source " name="iframe" width=" " height=" "> </iframe>
15th Feb 2018, 9:29 AM
Elizabeth🌸
Elizabeth🌸 - avatar
8th Jun 2020, 12:37 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 5
If you check my link, you will see examples too
15th Feb 2018, 9:21 AM
Andrija Dinic
Andrija Dinic - avatar
+ 4
Well it is used to display webpage within webpage. You can read more on https://www.w3schools.com/tags/tag_iframe.asp
15th Feb 2018, 9:14 AM
Andrija Dinic
Andrija Dinic - avatar
+ 3
it work as a container . generally used for web page adjustment.
15th Feb 2018, 9:14 AM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
+ 3
Well, I didn't see frame tag that often, it's used to take stuff from another web page so if you don't need it, you can skip it. For example it could be used to take a post from social network or similar but I'm not a pro :)
15th Feb 2018, 9:27 AM
Andrija Dinic
Andrija Dinic - avatar
+ 3
Ooo thanks anyways
15th Feb 2018, 9:29 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
Well can you explain how do we use this element in code??
15th Feb 2018, 9:20 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
Ok now tell me how important it is to learn <frame> element? , I know html 5 does not support it.. That's why I'm asking
15th Feb 2018, 9:25 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
Thanks elizabeth but I am more curious to know about <frame>element...
15th Feb 2018, 9:31 AM
Sachin Kumar
Sachin Kumar - avatar
15th Feb 2018, 9:32 AM
Andrija Dinic
Andrija Dinic - avatar
+ 2
Ok thanks 👍 I will give it a try
15th Feb 2018, 9:38 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
in frames <frameset> element is used instead of the <body> element. General form of frames :- <noframes> <body> <p>frameset not supported</p> </body> </noframes> <frameset cols="50px,20px"> <!--50px & 20px are the size of frames--> <frame src=" "/> <frame src=" "/> </frameset> </html>
15th Feb 2018, 10:03 AM
jabed ali
jabed ali - avatar
+ 2
Thanks elizabeth your code is working but I still don't have any clue what to do on those frames?? I can't seem to put any content on any of those frames.
15th Feb 2018, 10:03 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
There's part that looks like src="", put webpage link in between " and ",
15th Feb 2018, 10:05 AM
Andrija Dinic
Andrija Dinic - avatar
+ 2
Ok I'll try #Andrija
15th Feb 2018, 10:07 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
Hey andrija, I put that code on public mode.. Would you mind if you give it a look
15th Feb 2018, 10:11 AM
Sachin Kumar
Sachin Kumar - avatar
+ 2
ok
15th Feb 2018, 10:33 AM
Andrija Dinic
Andrija Dinic - avatar