SlideShare a Scribd company logo
4
Most read
9
Most read
HTML FRAMES
            BY
Hafiz Muhammad Arslan Elahi
03325172005
Quiz

• Write a code for the following output
  – Table border “1”, background color “#c9c9c9”
  – Font color “blue”, cell spacing “”2px”
             A        B       C       D   E       F       G
                  A               B       C           D
             A            B           C       D           E
              A           B           C       D           E
                  A           B       C       D           E
                                      A
Definition

• Frame is a container window that can
  display a web page
• Many web pages can display
• Break the page into different sections
  – Title
  – Navigational
  – Contents
  – Footer
Advantages

• Keep one part static and change other
  parts
• Multiple pages in the same browser
• Reduce load on the server
  – All pages not reloaded
Disadvantages

• Difficult to print the content of all frames as
  compared to a normal web page
• Most browsers do no allow to bookmark
  an individual frame page.
Tags

<frameset>
•Define the style and no. of frames
•Nested <frameset> also allowed
  Attributes                     Description
  Rows                Pixel, %age, * indicate remaining
                      space

  Cols                As above
  Border              Width of border
  Framespacing        Space b/w the frames
Tags contd…

<frame>
•Nested in frameset tag
  Attributes                       Description
  SRC            Page displayed in the frame
  Marginheight   Space to be left at the top and left side of
                 frame
  Marginwidth    Space to be left along the sides of frames
  Name           Name of frame
  Noresize       Frame un-sizeable
  Scrolling      Yes, no , auto
                 Vertical , horizontal scrollbars
  Border         Width of frames
Tags contd….

• Target Frame

          Value            Description
         _parent   Page loaded containing the
                   current frame
          _top     Load into the whole browser
                   window
         _blank    New browser window
          _self    Loaded in the same window
                   Default target
Example
<frameset rows="20%, 70%,*">
       <frame src="header.html" name="header">

       <FRAMESET COLS="25%,*">               “frame.html”

     <FRAME SRC="NAVIGATION.HTML"
NAME="NAVIGATION">
     <frame src="content.html" name="content">
     </FRAMESET>

       <FRAME SRC="FOOTER.HTML" NAME="footer">
</frameset>
Example
<html>
        <body>                                  “header.html”
<BR/><BR/><BR/>
               <a href="content.html" target="content"> Content1</a>
               <a href="content2.html" target="content">
Content2</a>
               <a href="content3.html" target="content">
Content3</a>
               <a href="content4.html" target="content">
Content4</a>
               <a href="content5.html" target="content">
Content5</a>
        </body>
</html>
Example
<html>                                               “navigation.html”
         <body>
                  <a href="content.html" target="content"> Home</a><br/>
                  <a href="content2.html" target="content"> Services</a><br/>
                  <a href="content3.html" target="content"> Contact
Us</a><br/>
                <a href="content4.html" target="content"> About Us</a><br/>
                <a href="content5.html" target="content">
FeedBack</a><br/>
        </body>
</html>
Example
<html>
           <body>
                                                        “footer.html”
<center>
                    <a href="content.html" target="content"> Content1</a>
                    <a href="content2.html" target="content"> Content2</a>
                    <a href="content3.html" target="content"> Content3</a>
                    <a href="content4.html" target="content"> Content4</a>
                    <a href="content5.html" target="content"> Content5</a>
                    <p>&copy 2012,All Rights Reserved</p>
</center>
         </body>
</html>
Output

More Related Content

PPTX
HTML Frameset & Inline Frame
PPTX
PPTX
Html and css
PDF
Html frames
PPTX
Html Frames
PPTX
html-table
PPTX
HTML/HTML5
PDF
Html table tags
HTML Frameset & Inline Frame
Html and css
Html frames
Html Frames
html-table
HTML/HTML5
Html table tags

What's hot (20)

PPT
JavaScript Tutorial
PPTX
Cascading style sheets (CSS)
PDF
Introduction to html
PDF
Bootstrap 5 basic
PDF
CSS3 Media Queries
PPTX
HTML: Tables and Forms
PDF
Introduction to CSS3
PPSX
Html introduction
PPTX
DEFINE FRAME AND FRAME SET WITH A EXAMPLE
PPTX
Bootstrap 5 ppt
PDF
Intro to HTML & CSS
PPTX
Css box-model
PPTX
HTML iframe
PPTX
PPT
PPTX
HTML (Web) basics for a beginner
JavaScript Tutorial
Cascading style sheets (CSS)
Introduction to html
Bootstrap 5 basic
CSS3 Media Queries
HTML: Tables and Forms
Introduction to CSS3
Html introduction
DEFINE FRAME AND FRAME SET WITH A EXAMPLE
Bootstrap 5 ppt
Intro to HTML & CSS
Css box-model
HTML iframe
HTML (Web) basics for a beginner
Ad

Viewers also liked (11)

PPTX
HTML frames and HTML forms
PPTX
Html frames
PPTX
Introduction to JavaScript Basics.
PPTX
Html 5 Forms
PDF
Basic JavaScript Tutorial
PDF
HTML practicals
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
Introduction to Javascript
PPT
Javascript
PPT
JavaScript - An Introduction
PDF
The JavaScript Programming Language
HTML frames and HTML forms
Html frames
Introduction to JavaScript Basics.
Html 5 Forms
Basic JavaScript Tutorial
HTML practicals
Introduction to Cascading Style Sheets (CSS)
Introduction to Javascript
Javascript
JavaScript - An Introduction
The JavaScript Programming Language
Ad

Similar to Html frames (20)

PPTX
Web topic 9 navigation and link
DOCX
Html frames
PPTX
Final_Frames.pptx
ODP
Html tutorial 5
ODP
Html tutorial 5
PDF
02html Frames
PDF
Html Frames
PDF
02 html-frames
PPT
Frames.ppt
PDF
Ls-No-1 Web Publishing Notes.pdf 12th information technology chapter 1
PDF
2b. Web Technology HTML Basics-2
PPT
POLITEKNIK MALAYSIA
PPT
Ashish
PPT
frames
DOC
Handout6 html frames
PPTX
HTML FRAMES properties and list of frames in detail
PDF
HTML-Part2
DOC
Html basics 8 frame
 
Web topic 9 navigation and link
Html frames
Final_Frames.pptx
Html tutorial 5
Html tutorial 5
02html Frames
Html Frames
02 html-frames
Frames.ppt
Ls-No-1 Web Publishing Notes.pdf 12th information technology chapter 1
2b. Web Technology HTML Basics-2
POLITEKNIK MALAYSIA
Ashish
frames
Handout6 html frames
HTML FRAMES properties and list of frames in detail
HTML-Part2
Html basics 8 frame
 

Recently uploaded (20)

PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Lesson notes of climatology university.
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Pre independence Education in Inndia.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Pharma ospi slides which help in ospi learning
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Institutional Correction lecture only . . .
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Anesthesia in Laparoscopic Surgery in India
Lesson notes of climatology university.
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Insiders guide to clinical Medicine.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Pre independence Education in Inndia.pdf
Sports Quiz easy sports quiz sports quiz
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
Computing-Curriculum for Schools in Ghana
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharma ospi slides which help in ospi learning
RMMM.pdf make it easy to upload and study
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Final Presentation General Medicine 03-08-2024.pptx
Institutional Correction lecture only . . .
human mycosis Human fungal infections are called human mycosis..pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Supply Chain Operations Speaking Notes -ICLT Program

Html frames

  • 1. HTML FRAMES BY Hafiz Muhammad Arslan Elahi 03325172005
  • 2. Quiz • Write a code for the following output – Table border “1”, background color “#c9c9c9” – Font color “blue”, cell spacing “”2px” A B C D E F G A B C D A B C D E A B C D E A B C D E A
  • 3. Definition • Frame is a container window that can display a web page • Many web pages can display • Break the page into different sections – Title – Navigational – Contents – Footer
  • 4. Advantages • Keep one part static and change other parts • Multiple pages in the same browser • Reduce load on the server – All pages not reloaded
  • 5. Disadvantages • Difficult to print the content of all frames as compared to a normal web page • Most browsers do no allow to bookmark an individual frame page.
  • 6. Tags <frameset> •Define the style and no. of frames •Nested <frameset> also allowed Attributes Description Rows Pixel, %age, * indicate remaining space Cols As above Border Width of border Framespacing Space b/w the frames
  • 7. Tags contd… <frame> •Nested in frameset tag Attributes Description SRC Page displayed in the frame Marginheight Space to be left at the top and left side of frame Marginwidth Space to be left along the sides of frames Name Name of frame Noresize Frame un-sizeable Scrolling Yes, no , auto Vertical , horizontal scrollbars Border Width of frames
  • 8. Tags contd…. • Target Frame Value Description _parent Page loaded containing the current frame _top Load into the whole browser window _blank New browser window _self Loaded in the same window Default target
  • 9. Example <frameset rows="20%, 70%,*"> <frame src="header.html" name="header"> <FRAMESET COLS="25%,*"> “frame.html” <FRAME SRC="NAVIGATION.HTML" NAME="NAVIGATION"> <frame src="content.html" name="content"> </FRAMESET> <FRAME SRC="FOOTER.HTML" NAME="footer"> </frameset>
  • 10. Example <html> <body> “header.html” <BR/><BR/><BR/> <a href="content.html" target="content"> Content1</a> <a href="content2.html" target="content"> Content2</a> <a href="content3.html" target="content"> Content3</a> <a href="content4.html" target="content"> Content4</a> <a href="content5.html" target="content"> Content5</a> </body> </html>
  • 11. Example <html> “navigation.html” <body> <a href="content.html" target="content"> Home</a><br/> <a href="content2.html" target="content"> Services</a><br/> <a href="content3.html" target="content"> Contact Us</a><br/> <a href="content4.html" target="content"> About Us</a><br/> <a href="content5.html" target="content"> FeedBack</a><br/> </body> </html>
  • 12. Example <html> <body> “footer.html” <center> <a href="content.html" target="content"> Content1</a> <a href="content2.html" target="content"> Content2</a> <a href="content3.html" target="content"> Content3</a> <a href="content4.html" target="content"> Content4</a> <a href="content5.html" target="content"> Content5</a> <p>&copy 2012,All Rights Reserved</p> </center> </body> </html>