Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Difference between Frame and IFrame

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 16.4k
    Comment on it

    Frame

    1. Frames are HTML tag which divides the browser's window into multiple parts where each part can load a separate HTML document.

    2. <frame> tag specifies each frame within a frameset tag.

    3. A collection of frames in the browser window is known as a frameset.

    4. Each Frame can be linked with a single and different sources.

    5. Frame object represents an HTML frame

    Example

    <!DOCTYPE html>
    <html>
    <head>
    <title>HTML Frames</title>
    </head>
    <frameset rows="20%,70%,10%">
       <frame name="top" src="/html/top.html" />
       <frame name="main" src="/html/main.html" />
       <frame name="bottom" src="/html/bottom.html" />
    </frameset>
    </html>
    

    IFrame

    1. Iframe is an inline frame and it is also used as <iframe> tag in HTML.

    2. Iline frame means it is used to embed some other document within the current HTML document.

    3.It is related to frameset but it can appear anywhere in your document.

    4.<iframe> tag defines a rectangular region within the document in which the browser can display a separate document.

    5.IFrame object represents an HTML inline frame.

    Example

    <!DOCTYPE html>
    <html>
    <head>
    <title>HTML Iframes</title>
    </head>
    <body>
    <p>See the video</p>
    
    
     <iframe width="854" height="480" src="https://www.youtube.com/embed/2eabXBvw4oI"
        frameborder="0"    allowfullscreen>
      </iframe>
    </body>
    </html>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: