Web Design Stuff
HTML Tutorials    CSS Tutorials    Web Hosting   Resources
Create a Web Page 101
Making Web Pages Intro What is a Web Page? Why Make a Web Page? The History of HTML Learn HTML or XHTML?
Basic HTML
Basic HTML Tutorials Basic HTML Necessities How to Make a Web Page How to Edit a Web Page The Basics of HTML Tags Basic HTML Page Structure HTML Attributes
HTML Font Codes
HTML Font Codes Intro HTML Font Color Codes HTML Font Size Codes HTML Font Style Codes HTML Bold/Italic Codes Combining Font Codes
Formatting Text
Formatting Text Intro Making Paragraphs Miscellaneous Formatting Headings & Subheadings Creating Hyperlinks
Using Graphics
Using Graphics on the Web Add Graphics to Your Pages Graphics and Accessibility How to Align Graphics Page Color & Background Graphics as Hyperlinks Horizontal Rules
Creating Tables
HTML Tables Tutorials HTML Table Fundamentals Background & Border Color Table Frames & Rules Table Width and Alignment Cells 1 -Space & Alignment Cells 2 -Row Column Span Cells 3 -Width & Height
Making Lists
HTML Lists Tutorials Bulleted Lists Numbered Lists Definition Lists
HTML Frames
HTML Frames Tutorials Using Frames for Layout Advanced Frame Layouts Putting Hyperlinks in Frames Frame Border Width Color, Margin and Control Problems with Frames SmartFrames: A Solution SSI: An Alternative to Frames
Web Page Forms
Making Feedback Forms A Simple Feedback Form Installing NMS FormMail Debugging Your Setup My Web Host is Out to Lunch User Input Components Text Fields Checkboxes & Radio Buttons Dropdown Menus Push Buttons Layout and Presentation
Basic CSS
Basic CSS Tutorials What is CSS? Why You Should Use CSS How to Use CSS Inline Styles Embedded Style Sheets External Style Sheets Class Selectors ID Selectors Combining Selectors
CSS Properties
CSS Properties Intro Font Styles Width, Height & Spacing Borders Backgrounds Position Float & Alignment Hyperlinks
All About Web Hosting
Hosting Your Own Website What is a Web Host? Your Website's Home Page Building a Website Offline About Free Web Hosting Best Free Web Hosting Commercial Web Hosting How to Get a Domain Name Ecommerce Web Hosting Web Hosting Terminology
Free Web Design Tools
Best Free Website Tools Best Free Text Editors Best Free Graphics Editors Free Website Analysis Tools
Setting Up HTML Kit
HTML Kit Introduction How to install HTML Kit Screenshot Breakdown Basic Configuration Overall Appearance Shortcuts and Startup Editing Window Customizing Toolbars Using the Favorites Tab Making a New Actions Bar Odds and Ends
Free Templates
Free Website Templates Two Column Fixed Width Three Column Liquid Layout Miscellaneous Templates Dynamic Menu Effects Two Column Experimental Terms of Use About These Templates
Website Templates Help
Getting Started Template Zip File Download How to Edit Your Template What to Edit in the HTML How to Add Your Logo Making a Website
Web Design Tips
Web Design Basics Tables vs. Tableless Using Tables for Layout Example Table Layouts World's Crappiest Web Page
Twitter Backgrounds
Twitter Backgrounds Intro Cool Twitter Backgrounds Cool Twitter Backgrounds 2 Plain Twitter Backgrounds Dark Twitter Backgrounds Best Twitter Backgrounds Cute Twitter Backgrounds Music Twitter Backgrounds Music Twitter Backgrounds 2 Twitter Backgrounds 101 TERMS OF USE
All About Web Browsers
What is a Web Browser? Mozilla Firefox Internet Explorer Opera How to Set Up Firefox Top 5 Firefox Extensions
 
Contact
Post Some Feedback Send Me An Email Iron Spider Blog About Iron Spider... Site Conventions
 
 
 

 

Bulleted Lists

 
<ul type="bullet type">
   <li> List Item
   <li> List Item
   <li> List Item
</ul>
Those who have used word processors may be familiar with the bulleted list format which is typically used to make a summary of related titles, ingredients, species, data, etc. You can reproduce this format on your web page using the ul element. The ul element employs a <ul> start tag and and </ul> end tag and must contain at least one or more list items which are placed in between. Each list item is preceded by a <li> start tag of which the </li> end tag is optional.

This example will illustrate:


Example 1 - SOURCE CODE

The following is a bulleted or 'unordered' list of the kinds of lists you can create using HTML:

<ul>
   <li> Unordered lists (bulleted)
   <li> Ordered lists (numbered or alphabetized)
   <li> Definition lists (term/definition format)
</ul>



Example 1 - RESULT

The following is a bulleted or 'unordered' list of the kinds of lists you can create using HTML:
  • Unordered lists (bulleted)
  • Ordered lists (numbered or alphabetized)
  • Definition lists (term/definition format)


Using the type attribute, you can specify what kind of "bullet type" to display in your list. The values you can use are disc, circle or square. Here's an example displaying three lists containing one list item each and using different values for the type attribute:

Example 2 - SOURCE CODE

<ul type="disc">
   <li> Disc
</ul>

<ul type="circle">
   <li> Circle
</ul>

<ul type="square">
   <li> Square
</ul>



Example 2 - RESULT
  • Disc
  • Circle
  • Square



The ul element is a block element and initially behaves like a paragraph by separating itself from other lists (and block elements) with a line of blank space. The li element is also a block element and hence may contain other block elements. Thus, if you really wanted to get adventurous, you could 'nest' one list inside the other, or in other words, have list items contain other lists.

Example 3 illustrates nesting lists within lists within lists. The source code is specially color-coded and indented to help you tell what's what (note that the indenting in the source code is not related to the indenting in the final result):


Example 3 - SOURCE CODE

<font size="4">HTML LISTS AND STYLE TYPES</font>

<ul>
<li> <b>Unordered Lists</b>
   <ul>
   <li> Disc bullet
   <li> Circle bullet
   <li> Square bullet
   </ul>

<li> <b>Ordered Lists</b>
   <ul>
   <li> Numbered
      <ul>
      <li> Decimal
      <li> Lowercase Roman numeral
      <li> Uppercase Roman numeral
      </ul>

   <li> Alphabetized
      <ul>
      <li> Lowercase
      <li> Uppercase
      </ul>

   </ul>

<li> <b>Definition Lists</b>
   <ul>
   <li> Term/Definition style
   </ul>
</ul>



In the above example:
  • Maroon Bold indicates a list at the top level (disc).
  • Green indicates a second-level list (circle).
  • Red indicates a third-level list (square).
  • Blue indicates other HTML text formats.

Example 3 - RESULT

HTML LISTS AND STYLE TYPES
  • Unordered Lists
    • Disc bullet
    • Circle bullet
    • Square bullet
  • Ordered Lists
    • Numbered
      • Decimal
      • Lowercase Roman numeral
      • Uppercase Roman numeral
    • Alphabetized
      • Lowercase
      • Uppercase
  • Definition Lists
    • Term/Definition style


Note how since no type attributes were specified in any of the lists in Example 3 then the main list and its subsequent nested lists display default bullet types which change according to how deep the respective list is nested. Hence, the main or 'top level' list defaults to disc, the second level to circle and the third level to square.


As you can see by the above, other list styles include numbered and alphabetized lists which together are categorized in HTML as ordered lists. These will be covered next...





Best Free Stuff
for webmasters

Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates

See also:

Best Free Web Hosting

 

If you need a .COM web address, you can get one quick and easy at...

www.GoDaddy.com
INTRO TOP NEXT ~>
 
HTML Tutorials |  CSS Tutorials |  Web Hosting |  Domain Names |  Web Design Resources
Iron Spider © Copyright 2004-2011 Robert Darrell