HTML - Iframes

You can define an inline frame with HTML tag <iframe>. The <iframe> tag is not somehow related to <frameset> tag, instead, it can appear anywhere in your document. The <iframe> tag defines a rectangular region within the document in which the browser can display a separate document, including scrollbars and borders. An inline frame is used to embed another document within the current HTML document.
The src attribute is used to specify the URL of the document that occupies the inline frame.
Following is the example to show how to use the <iframe> −
<!DOCTYPE html>
<html>

   <head>
      <title>HTML Iframes</title>
   </head>
	
   <body>
      <p>Document content goes here...</p>
      
      <iframe src = "/html/menu.htm" width = "555" height = "200">
         Sorry your browser does not support inline frames.
      </iframe>
      
      <p>Document content also go here...</p>
   </body>
	
</html>
This will produce the following result −
Document content goes here...


 Academic Tutorials
 Big Data & Analytics 
 Computer Programming 
 Computer Science 
 Databases 
 DevOps 
 Digital Marketing 
 Engineering Tutorials 
 Exams Syllabus 
 Famous Monuments 
 GATE Exams Tutorials
 Latest Technologies 
 Machine Learning 
 Mainframe Development 
 Management Tutorials 
 Mathematics Tutorials
 Microsoft Technologies 
 Misc tutorials 
 Mobile Development 
 Java Technologies 
 Python Technologies 
 SAP Tutorials 
Programming Scripts 
 Selected Reading 
 Software Quality 
 Soft Skills 
 Telecom Tutorials 
 UPSC IAS Exams 
 Web Development 
 Sports Tutorials 
 XML Technologies 
 Multi-Language
 Interview Questions


 Academic Tutorials
 Big Data & Analytics 
 Computer Programming 
 Computer Science 
 Databases 
 DevOps 
 Digital Marketing 
 Engineering Tutorials 
 Exams Syllabus 
 Famous Monuments 
 GATE Exams Tutorials
 Latest Technologies 
 Machine Learning 
 Mainframe Development 
 Management Tutorials 
 Mathematics Tutorials
 Microsoft Technologies 
 Misc tutorials 
 Mobile Development 
 Java Technologies 
 Python Technologies 
 SAP Tutorials 
Programming Scripts 
 Selected Reading 
 Software Quality 
 Soft Skills 
 Telecom Tutorials 
 UPSC IAS Exams 
 Web Development 
 Sports Tutorials 
 XML Technologies 
 Multi-Language
 Interview Questions
HTML Tutorial
HTML - Home
HTML - Overview
HTML - Basic Tags
HTML - Elements
HTML - Attributes
HTML - Formatting
HTML - Phrase Tags
HTML - Meta Tags
HTML - Comments
HTML - Images
HTML - Tables
HTML - Lists
HTML - Text Links
HTML - Image Links
HTML - Email Links
HTML - Frames
HTML - Iframes
HTML - Blocks
HTML - Backgrounds
HTML - Colors
HTML - Fonts
HTML - Forms
HTML - Embed Multimedia
HTML - Marquees
HTML - Header
HTML - Style Sheet
HTML - Javascript
HTML - Layouts
HTML References
HTML - Tags Reference
HTML - Attributes Reference
HTML - Events Reference 
HTML - Fonts Reference
HTML - ASCII Codes
ASCII Table Lookup
HTML - Color Names
HTML - Entities
HTML - Fonts Ref
HTML - Events Ref
MIME Media Types
HTML - URL Encoding
Language ISO Codes
HTML - Character Encodings
HTML - Deprecated Tags
HTML Resources
HTML - Quick Guide
HTML - Useful Resources
HTML - Color Code Builder
HTML - Discussion
HTML - Online Editor
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who

    19 Lectures 
     2 hours 

 Anadi Sharma

    16 Lectures 
     1.5 hours 

 Anadi Sharma

    18 Lectures 
     1.5 hours 

 Frahaan Hussain

    57 Lectures 
     5.5 hours 

 DigiFisk (Programming Is Fun)

    54 Lectures 
     6 hours 

 DigiFisk (Programming Is Fun)

    45 Lectures 
     5.5 hours 

 DigiFisk (Programming Is Fun)
 Print
 Add Notes
 Bookmark this page