HTML
  Home arrow HTML arrow Page 4 - 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 
Sun Developer Network 
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 - Lists in HTML


    (Page 4 of 6 )

    There are three types of lists in HTML: the ordered list, the unordered list, and the definition list. They allow you to create bulleted and numbered lists of data in HTML.

    The Ordered List

    The ordered list creates lists of data with a numeric value in front of it. It uses the <ol> tag to begin the list, and the <li> tag for each item in the list, like so:


    <html>

    <body>


    <h4>My Awesome Pasta Recipe:</h4>

    <ol>

    <li>Pasta</li>

    <li>Goat Cheese</li>

    <li>Roasted Red Peppers</li>

    <li>Sun-dried Tomatoes</li>

    <li>Chopped Eggplant</li>

    <li>Mozzarella</li>

    <li>Fresh Basil</li>

    <li>Turkey Sausage (optional)</li>

    <li>Grated Parmesan Cheese</li>

    </ol>


    </body>

    </html>

    The result of this code would be:

    My Awesome Pasta Recipe:

    1. Pasta

    2. Goat Cheese

    3. Roasted Red Peppers

    4. Sun-dried Tomatoes

    5. Chopped Eggplant

    6. Mozzarella

    7. Fresh Basil

    8. Turkey Sausage (optional)

    9. Grated Parmesan Cheese

    And the result of that dish would be a very satisfied stomach (you can sub Chorizo for the hot turkey sausage to kick it up a notch. BLAM!)

    You can of course create other types of ordered lists, such as the ways indicated by this extensive code:


    <html>

    <body>


    <h3>To Create a Numbered list:</h3>

    <ol>

    <li>Pasta</li>

    <li>Goat Cheese</li>

    <li>Roasted Red Peppers</li>

    <li>Sun-dried Tomatoes</li>

    <li>Chopped Eggplant</li>

    <li>Mozzarella</li>

    <li>Fresh Basil</li>

    <li>Turkey Sausage (optional)</li>

    <li>Grated Parmesan Cheese</li>

    </ol>


    <h3>To Create a Letters list:</h3>

    <ol type="A">

    <li>Pasta</li>

    <li>Goat Cheese</li>

    <li>Roasted Red Peppers</li>

    <li>Sun-dried Tomatoes</li>

    <li>Chopped Eggplant</li>

    <li>Mozzarella</li>

    <li>Fresh Basil</li>

    <li>Turkey Sausage (optional)</li>

    <li>Grated Parmesan Cheese</li>

    </ol>


    <h3>To Create a Lowercase letters list:</h3>

    <ol type="a">

    <li>Pasta</li>

    <li>Goat Cheese</li>

    <li>Roasted Red Peppers</li>

    <li>Sun-dried Tomatoes</li>

    <li>Chopped Eggplant</li>

    <li>Mozzarella</li>

    <li>Fresh Basil</li>

    <li>Turkey Sausage (optional)</li>

    <li>Grated Parmesan Cheese</li>

    </ol>


    <h3>To Create a Roman numerals list:</h3>

    <ol type="I">

    <li>Pasta</li>

    <li>Goat Cheese</li>

    <li>Roasted Red Peppers</li>

    <li>Sun-dried Tomatoes</li>

    <li>Chopped Eggplant</li>

    <li>Mozzarella</li>

    <li>Fresh Basil</li>

    <li>Turkey Sausage (optional)</li>

    <li>Grated Parmesan Cheese</li>

    </ol>


    <h3>To Create a Lowercase Roman numerals list:</h3>

    <ol type="i">

    <li>Pasta</li>

    <li>Goat Cheese</li>

    <li>Roasted Red Peppers</li>

    <li>Sun-dried Tomatoes</li>

    <li>Chopped Eggplant</li>

    <li>Mozzarella</li>

    <li>Fresh Basil</li>

    <li>Turkey Sausage (optional)</li>

    <li>Grated Parmesan Cheese</li>

    </ol>


    </body>

    </html>

    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

    - Using a 3D HTML Table as a Recordset
    - Building a 3D HTML Table
    - Maximizing and Restoring HTML Images: Layer ...
    - Completing Construction of a Database Form w...
    - Maximizing and Restoring Images in a Tabular...
    - Building the Recordset for an HTML Database ...
    - Laying Out a Database Form with HTML
    - Tabular Database Form Functions with HTML
    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset






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