If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.
HTML में iframe का use किसी web page में दुसरे web page को दिखाने के लिए किया जाता है। means nested webpage को show करने के लिए किया जाता है।
webpage में iframe use करने के लिए <iframe> tag का use किया जाता है।
iframe में use hone वाले कुछ tags इस प्रकार हैं -
<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 दिखाई दे रहा है।
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 कर सकते हैं।
Hi ! I'm Rahul Kumar Rajput founder of learnhindituts.com. I'm a software developer having more than 4 years of experience. I love to talk about programming as well as writing technical tutorials and blogs that can help to others. I'm here to help you navigate the coding cosmos and turn your ideas into reality, keep coding, keep learning :)
Get connected with me. :) LinkedIn Twitter Instagram Facebook