Share your knowledge with other learners . . . Login Register

HTML में iframe का use किसी web page में दुसरे web page को दिखाने के लिए किया जाता है। means nested webpage को show करने के लिए किया जाता है।


webpage में iframe use करने के लिए <iframe> tag का use किया जाता है।

HTML iframe Attributes

iframe में use hone वाले कुछ tags इस प्रकार हैं -

HTML iframe src=""

<src> attribute <iframe> का सबसे important attribute है , इसमें हम उस page का path देते हैं जिस page को हमें <iframe> में show कराना है।
For Example -

<iframe src="https://learnhindituts.com/html/html-introduction-in-hindi"></iframe>

Output :

Example में HTML Introduction के page का path दिया गया है , तो output में हमें वही page का complete content दिखाई दे रहा है।

HTML iframe style=""

style attribute का use CSS style apply करने के लिए किया जाता है। बैसे तो style attribute HTML elements के लिए universal attribute है because आप इसे किसी भी element में use कर सकते हैं।
For Example -

<iframe src="https://learnhindituts.com/html/html-introduction-in-hindi" style="border:none;width:250px;height:200px"></iframe>

Output :

बैसे तो इसके <img> tag की तरह width & height attribute भी होते हैं , जिनकी help से आप <iframe> की width और height set कर सकते हैं।

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.

Get connected with me. :) LinkedIn Twitter Instagram Facebook

b2eprogrammers