HTML
  Home arrow HTML arrow Frames and Lists in HTML
IBM Rational Software Development Conference
Iron Speed
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  
Dedicated Servers  
Download TestComplete 
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
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    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

    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips
    - Color Composition and HTML
    - HTML Fonts, Styles, and Headers
    - Uses of the New Window Command for Web Sites
    - HTML Working with Images
    - HTML: Working with Special Characters
    - HTML Forms
    - HTML Tables






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway