HTML
  Home arrow HTML arrow Frames and Lists in HTML
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Frames and Lists in HTML
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2008-01-23

    Table of Contents:
  • Frames and Lists in HTML
  • Setting a Frame in the Horizontal Position
  • Displaying Frame with the Iframe
  • Lists in HTML
  • The Unordered List
  • Working with Nested Lists

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Frames and Lists in HTML


    (Page 1 of 6 )

    In our previous article we learned to work with links and entities (or special characters) in HTML and how HTML handles white space. In this episode we will discuss how to use frames to create pages within the page and how to use lists.

    Working with Frames

    You can use frames to display more than one page in a browser window. This is useful for a variety of things, particularly if you want to create a menu bar across your website without having to program it or copy and paste it over every page. For instance, you can set your menu bar in a frame on the left side of the page, and when the user clicks on a link, the page will load in the center of the page (to the right of the menu bar frame).

    There are four places to set your frames in an HTML page. You can set them vertically, horizontally, a mixture of the two, or inline, which we will discuss in a few moments.

    Setting a Frame in the Vertical Position

    Framesets use column and rows to determine where a frame is located. To set the frame vertically, we use the cols property:


    <html>


    <frameset cols="20%,80%">


    <frame src="menuframe.htm">

    <frame src="main_frame.htm">

    </frameset>


    </html>

    The above sample creates two frames in the vertical position. It does this using the line: <frameset cols=”20%”,80%”>. The word cols stands for column, and decides where the frame will appear (vertically for cols) and the 20%,80% decided the amount of the page the frame will take up. For instance, in this case we have two frames. The first frame (and the page nestled within it) will take up 20% of the browser. The second frame (and once again, the page within it) will take up the remaining 80% of the browser.

    Next, we use the <frame src> to tell the browser which page to insert into the frame.

    More HTML Articles
    More By James Payne


       · Thanks for dropping by to read my article on Frames and Lists in HTML. In this...
       · hi there, i hav started to learn html,ur site has helped me a lot ,thanks a...
       · Hey, glad you like the site. If you have any questions about HTML (or any other...
     

    HTML ARTICLES

    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP
    - Background Images for a Menu for All Browsers
    - React and ToChoose Functions for a Menu for ...
    - Fast FAQ Session with ACP
    - Functions for a Menu for All Browsers
    - Browser Compatibility Modifications for a We...
    - Building a Drop-Down Menu with Nested HTML L...
    - Table Attributes for a Menu for all Browsers
    - Modifying a Web Page Calendar
    - Styling Elements of Nested HTML Lists
    - Configuring Tables for a Menu for All Browse...
    - Showing a Full Year with a Web Page Calendar
    - Designing with Nested HTML Lists







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT