Home arrow HTML arrow Page 5 - Frames and Lists in HTML
HTML

Frames and Lists in HTML


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.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 5
January 23, 2008
TABLE OF CONTENTS:
  1. · Frames and Lists in HTML
  2. · Setting a Frame in the Horizontal Position
  3. · Displaying Frame with the Iframe
  4. · Lists in HTML
  5. · The Unordered List
  6. · Working with Nested Lists

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Frames and Lists in HTML - The Unordered List
(Page 5 of 6 )

The names ordered lists and unordered lists, to me, are misleading. Before you get up in arms and send me hate mail, I understand that the numerics in the ordered list are why it is called ordered. Still, I can put the data in any order I want in that list; it's the numerics preceding the data that are ordered. But you get my point. I hope.

Instead of numerics, unordered lists use bullets in front of the data. Their creation is very similar to that of ordered lists:


<html>

<body>


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

<ul>

<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>

</ul>


</body>

</html>

As you can see, the only difference is the replacement of the <ol> tag with the <ul> tag. Also, just as there are different types of ordered lists, the same is true with our good buddy the unordered list:


<html>

<body>


<h4>To Create a Disc bulleted list:</h4>

<ul type="disc">

<li>A</li>

<li>B</li>

<li>C</li>

</ul>


<h4>To Create a Circle bulleted list:</h4>

<ul type="circle">

<li>A</li>

<li>B</li>

<li>C</li>

</ul>


<h4>To Create a Square bulleted list:</h4>

<ul type="square">

<li>A</li>

<li>B</li>

<li>C</li>

</ul>


</body>

</html>

This displays:

To Create a Disc bulleted list:

  • A

  • B

  • C

To Create a Circle bulleted list:

  • A

  • B

  • C

To Create a Square bulleted list:

  • A

  • B

  • C

Note that there are other ways to display both types of lists, including custom bullets, but that is beyond the scope of this article.


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials