SlideShare ist ein Scribd-Unternehmen logo
1 von 4
WEBPROG1 – HTML                                           Midterm Period
                                                             Handout #6


HTML Frames

     Frames allow for multiple ".html" documents to be displayed inside
of one browser window at a time. This means that one page has no
content on it, but rather tells the browser which web pages you would
like to open.

Frames - A Generic Frame Page

    Frames are most typically used to have a menu in one frame, and
content in another frame. When someone clicks a link on the menu
that web page is then opened on the content page. Here is a classic
example of a basic "index" frameset with a menu on the left and
content on the right.

Code:
<html>
<head>
</head>
<frameset cols="30%,*">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</html>

o frameset - The parent tag that defines the characteristics of this
  frames page. Individual frames are defined inside it.
o frameset cols="#%, *"- Cols(columns) defines the width that
  each frame will have. In the above example we chose the menu
  (the 1st column) to be 30% of the total page and used a "*", which
  means the content (the 2nd column) will use the remaining width
  for itself.
o frame src="" -The location of the web page to load into the frame.
  A good rule of thumb is to call the page which contains this frame
  information "index.html" because that is typically a site's main
  page.




Prepared By: RICHARD F. ORPIANO                              Page 1 of 4
WEBPROG1 – HTML                                             Midterm Period
                                                               Handout #6


Adding a Banner or Title Frame

     Add a row to the top for a title and graphics with the code as
follows:

<html>
<head></head>
<frameset rows="20%,*">
<frame src="title.html">
<frameset cols="30%,*">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</html>

o frameset rows="#%, *"- rows defines the height that each
  frame will have. In the above example we chose the new title (the
  1st row) to be 20% of the total page height and used a "*", which
  means that menu and content (which are the 2nd row) will use the
  remaining height.

FrameBorder and FrameSpacing

    You probably noticed those ugly gray lines that appear between
the frames. It is possible to remove these and manipulate the spacing
between frames with frameborder and framespacing. These attributes
appear within the frameset tag.

    Note: Framespacing and border are the same attribute, but some
browsers only recognize one or the other, so use both, with the same
value, to be safe.

o frameborder="#" - A zero value shows no "window" border.
o border="#"- Modifies the border width, used by Netscape.
o framespacing="#" -Modifies the border width, used by Internet
  Explorer.




Prepared By: RICHARD F. ORPIANO                                Page 2 of 4
WEBPROG1 – HTML                                         Midterm Period
                                                           Handout #6




Code:
<html>
<head></head>
<frameset border="0" frameborder="0" framespacing="0"
rows="20%,*">
<frame src="title.html">
<frameset border="0" frameborder="0" framespacing="0"
cols="30%,*">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</html>

Frame Name and Frame Target

    How nice would it be to make each menu link load into the content
page? We do this by naming each frame and setting the correct base
target inside menu.html.

Frame Code:
<html>
<head></head>
<frameset rows="20%,*">
<frame name="title" src="title.html">
<frameset cols="30%,*">
<frame name="menu" src="menu.html">
<name="content" src="content.html">
</frameset>
</html>

menu.html Code:
<html>
<head>
<base target="content">
</head>
...
</html>

    We first named the content frame "content" on our frame page
and then we set the base target inside menu.html to point to that
frame. Our frame page is now a perfectly functional menu & content
layout!


Prepared By: RICHARD F. ORPIANO                            Page 3 of 4
WEBPROG1 – HTML                                              Midterm Period
                                                                Handout #6


Noresize and Scrolling

    It's possible to further customize the <frame> tag using the
noresize and scrolling="" attributes.

Code:
<html>
<head></head>
<frameset border="2" frameborder="1" framespacing="2"
rows="20%,*">
<frame src="title.html" noresize scrolling="no">
<frameset border="4" frameborder="1" framespacing="4"
cols="30%,*">
<frame src="menu.html" scrolling="auto" noresize>
<frame src="content.html" scrolling="yes" noresize>
</frameset>
</html>

o noresize - Do not let the frames be resized by the visitor.
o scrolling="(yes/no)"- Allow scrolling or not inside a frame.

     We set the scrolling for our content frame to yes to ensure our
visitors will be able to scroll if the content goes off the screen. We also
set the scrolling for our title banner to no, because it does not make
sense to have a scrollbar appear in the title frame.




Prepared By: RICHARD F. ORPIANO                                  Page 4 of 4

Weitere ähnliche Inhalte

Was ist angesagt?

جيفيرا باي الساحل الشمالي
جيفيرا باي الساحل الشماليجيفيرا باي الساحل الشمالي
جيفيرا باي الساحل الشماليReda Hassan
 
Google Earth Tutorials Part III
Google Earth Tutorials Part IIIGoogle Earth Tutorials Part III
Google Earth Tutorials Part IIItcooper66
 
Joomla! Day UK 2009 Menus Presentation
Joomla! Day UK 2009 Menus PresentationJoomla! Day UK 2009 Menus Presentation
Joomla! Day UK 2009 Menus PresentationAndy Wallace
 
Joomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic TemplatesJoomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic TemplatesAndy Wallace
 
SEO Structures by Yavor Milchev
SEO Structures by Yavor MilchevSEO Structures by Yavor Milchev
SEO Structures by Yavor MilchevYavor Milchev
 
Down and dirty with hreflang - Smx munich 2014 - david sottimano
Down and dirty with hreflang - Smx munich 2014 - david sottimanoDown and dirty with hreflang - Smx munich 2014 - david sottimano
Down and dirty with hreflang - Smx munich 2014 - david sottimanoDavid Sottimano
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieRafaela Souza
 
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp SydneyGetting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp SydneyWordCamp Sydney
 
Css 1
Css 1Css 1
Css 1H K
 

Was ist angesagt? (18)

Handout7 html forms
Handout7 html formsHandout7 html forms
Handout7 html forms
 
جيفيرا باي الساحل الشمالي
جيفيرا باي الساحل الشماليجيفيرا باي الساحل الشمالي
جيفيرا باي الساحل الشمالي
 
Google Earth Tutorials Part III
Google Earth Tutorials Part IIIGoogle Earth Tutorials Part III
Google Earth Tutorials Part III
 
Joomla! Day UK 2009 Menus Presentation
Joomla! Day UK 2009 Menus PresentationJoomla! Day UK 2009 Menus Presentation
Joomla! Day UK 2009 Menus Presentation
 
Layers&Frames
Layers&FramesLayers&Frames
Layers&Frames
 
Joomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic TemplatesJoomla! Day UK 2009 Basic Templates
Joomla! Day UK 2009 Basic Templates
 
Document
DocumentDocument
Document
 
Html form
Html formHtml form
Html form
 
Tmx9
Tmx9Tmx9
Tmx9
 
Class13
Class13Class13
Class13
 
SEO Structures by Yavor Milchev
SEO Structures by Yavor MilchevSEO Structures by Yavor Milchev
SEO Structures by Yavor Milchev
 
Down and dirty with hreflang - Smx munich 2014 - david sottimano
Down and dirty with hreflang - Smx munich 2014 - david sottimanoDown and dirty with hreflang - Smx munich 2014 - david sottimano
Down and dirty with hreflang - Smx munich 2014 - david sottimano
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Theme04
Theme04Theme04
Theme04
 
Pagina web tersera
Pagina web terseraPagina web tersera
Pagina web tersera
 
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp SydneyGetting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
 
Css 1
Css 1Css 1
Css 1
 
Pemrograman Web 2 - CSS
Pemrograman Web 2 - CSSPemrograman Web 2 - CSS
Pemrograman Web 2 - CSS
 

Ähnlich wie Handout6 html frames

Ähnlich wie Handout6 html frames (20)

Html frames
Html framesHtml frames
Html frames
 
Final_Frames.pptx
Final_Frames.pptxFinal_Frames.pptx
Final_Frames.pptx
 
HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
 
2b. Web Technology HTML Basics-2
2b. Web Technology HTML Basics-22b. Web Technology HTML Basics-2
2b. Web Technology HTML Basics-2
 
Web topic 9 navigation and link
Web topic 9  navigation and linkWeb topic 9  navigation and link
Web topic 9 navigation and link
 
Frames.ppt
Frames.pptFrames.ppt
Frames.ppt
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html Frames
Html FramesHtml Frames
Html Frames
 
HTML-Part2
HTML-Part2HTML-Part2
HTML-Part2
 
Frames and its components
Frames and its components Frames and its components
Frames and its components
 
Html frames
Html framesHtml frames
Html frames
 
Html basics 8 frame
Html basics 8 frameHtml basics 8 frame
Html basics 8 frame
 
DEFINE FRAME AND FRAME SET WITH A EXAMPLE
DEFINE FRAME AND FRAME SET WITH A EXAMPLEDEFINE FRAME AND FRAME SET WITH A EXAMPLE
DEFINE FRAME AND FRAME SET WITH A EXAMPLE
 
Presentation1
Presentation1Presentation1
Presentation1
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
computer language - Html frames
computer language - Html framescomputer language - Html frames
computer language - Html frames
 
DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTML
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

Mehr von Nadine Guevarra (18)

Handout5 tables
Handout5 tablesHandout5 tables
Handout5 tables
 
Handout4 lists
Handout4 listsHandout4 lists
Handout4 lists
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Questionnaire
QuestionnaireQuestionnaire
Questionnaire
 
War and man’s past
War and man’s pastWar and man’s past
War and man’s past
 
Olympics
OlympicsOlympics
Olympics
 
Mother and child
Mother and childMother and child
Mother and child
 
Lec no. 3 comp hardware components
Lec no. 3 comp hardware componentsLec no. 3 comp hardware components
Lec no. 3 comp hardware components
 
Intro to spreadsheet
Intro to spreadsheetIntro to spreadsheet
Intro to spreadsheet
 
Excel.01
Excel.01Excel.01
Excel.01
 
Robert frost 001
Robert frost 001Robert frost 001
Robert frost 001
 
On giving 001
On giving 001On giving 001
On giving 001
 
Poetry 001
Poetry 001Poetry 001
Poetry 001
 
Robert frost 001
Robert frost 001Robert frost 001
Robert frost 001
 
The river merchant's wife 001
The river merchant's wife 001The river merchant's wife 001
The river merchant's wife 001
 
Wl lecture 2 essay 001
Wl lecture 2 essay 001Wl lecture 2 essay 001
Wl lecture 2 essay 001
 

Kürzlich hochgeladen

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Kürzlich hochgeladen (20)

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

Handout6 html frames

  • 1. WEBPROG1 – HTML Midterm Period Handout #6 HTML Frames Frames allow for multiple ".html" documents to be displayed inside of one browser window at a time. This means that one page has no content on it, but rather tells the browser which web pages you would like to open. Frames - A Generic Frame Page Frames are most typically used to have a menu in one frame, and content in another frame. When someone clicks a link on the menu that web page is then opened on the content page. Here is a classic example of a basic "index" frameset with a menu on the left and content on the right. Code: <html> <head> </head> <frameset cols="30%,*"> <frame src="menu.html"> <frame src="content.html"> </frameset> </html> o frameset - The parent tag that defines the characteristics of this frames page. Individual frames are defined inside it. o frameset cols="#%, *"- Cols(columns) defines the width that each frame will have. In the above example we chose the menu (the 1st column) to be 30% of the total page and used a "*", which means the content (the 2nd column) will use the remaining width for itself. o frame src="" -The location of the web page to load into the frame. A good rule of thumb is to call the page which contains this frame information "index.html" because that is typically a site's main page. Prepared By: RICHARD F. ORPIANO Page 1 of 4
  • 2. WEBPROG1 – HTML Midterm Period Handout #6 Adding a Banner or Title Frame Add a row to the top for a title and graphics with the code as follows: <html> <head></head> <frameset rows="20%,*"> <frame src="title.html"> <frameset cols="30%,*"> <frame src="menu.html"> <frame src="content.html"> </frameset> </html> o frameset rows="#%, *"- rows defines the height that each frame will have. In the above example we chose the new title (the 1st row) to be 20% of the total page height and used a "*", which means that menu and content (which are the 2nd row) will use the remaining height. FrameBorder and FrameSpacing You probably noticed those ugly gray lines that appear between the frames. It is possible to remove these and manipulate the spacing between frames with frameborder and framespacing. These attributes appear within the frameset tag. Note: Framespacing and border are the same attribute, but some browsers only recognize one or the other, so use both, with the same value, to be safe. o frameborder="#" - A zero value shows no "window" border. o border="#"- Modifies the border width, used by Netscape. o framespacing="#" -Modifies the border width, used by Internet Explorer. Prepared By: RICHARD F. ORPIANO Page 2 of 4
  • 3. WEBPROG1 – HTML Midterm Period Handout #6 Code: <html> <head></head> <frameset border="0" frameborder="0" framespacing="0" rows="20%,*"> <frame src="title.html"> <frameset border="0" frameborder="0" framespacing="0" cols="30%,*"> <frame src="menu.html"> <frame src="content.html"> </frameset> </html> Frame Name and Frame Target How nice would it be to make each menu link load into the content page? We do this by naming each frame and setting the correct base target inside menu.html. Frame Code: <html> <head></head> <frameset rows="20%,*"> <frame name="title" src="title.html"> <frameset cols="30%,*"> <frame name="menu" src="menu.html"> <name="content" src="content.html"> </frameset> </html> menu.html Code: <html> <head> <base target="content"> </head> ... </html> We first named the content frame "content" on our frame page and then we set the base target inside menu.html to point to that frame. Our frame page is now a perfectly functional menu & content layout! Prepared By: RICHARD F. ORPIANO Page 3 of 4
  • 4. WEBPROG1 – HTML Midterm Period Handout #6 Noresize and Scrolling It's possible to further customize the <frame> tag using the noresize and scrolling="" attributes. Code: <html> <head></head> <frameset border="2" frameborder="1" framespacing="2" rows="20%,*"> <frame src="title.html" noresize scrolling="no"> <frameset border="4" frameborder="1" framespacing="4" cols="30%,*"> <frame src="menu.html" scrolling="auto" noresize> <frame src="content.html" scrolling="yes" noresize> </frameset> </html> o noresize - Do not let the frames be resized by the visitor. o scrolling="(yes/no)"- Allow scrolling or not inside a frame. We set the scrolling for our content frame to yes to ensure our visitors will be able to scroll if the content goes off the screen. We also set the scrolling for our title banner to no, because it does not make sense to have a scrollbar appear in the title frame. Prepared By: RICHARD F. ORPIANO Page 4 of 4