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
 
 
 

 

Numbered and Alphabetized Lists

 
<ol type="number or letter type">
   <li> List Item
   <li> List Item
   <li> List Item
</ol>
Along with bulleted lists, you can also create numbered or alphabetized lists which are known in HTML as ordered lists. To render an ordered list, you use the ol element which requires both an <ol> start tag and an </ol> end tag. Between these tags you must place at least one or more list items, each of which are preceded by an <li> start tag (end tag is optional).

The following example illustrates:


Example 1 - SOURCE CODE

The three basic steps to creating a web page are:
<ol>
   <li> Decide on a subject.
   <li> Acquire the necessary tools and materials.
   <li> Write the HTML source code.
</ol>



Example 1 - RESULT

The three basic steps to creating a web page are:
  1. Decide on a subject.
  2. Acquire the necessary tools and materials.
  3. Write the HTML source code.


Ordering Styles


The list in Example 1 uses the the default '1, 2, 3' ordering style. You can, however, explicitly define the ordering style by using the type attribute in the <ol> tag. The type attribute employs one of the following values and "orders" the list according to the given example:


ValueOrdering Style
11, 2, 3, ...
ii, ii, iii, ...
II, II, III, ...
aa, b, c, ...
AA, B, C, ...

To illustrate, let's take the list we used in Example 1 and alphabetize it using lower-case characters:


Example 2 - SOURCE CODE

The three basic steps to creating a web page are:
<ol type="a">
   <li> Decide on a subject.
   <li> Acquire the necessary tools and materials.
   <li> Write the HTML source code.
</ol>



Example 2 - RESULT

The three basic steps to creating a web page are:
  1. Decide on a subject.
  2. Acquire the necessary tools and materials.
  3. Write the HTML source code.


Nesting Lists


You can nest other lists inside of ordered lists and you can even nest an unordered list inside of an ordered list thus making for a more sophisticated display. To illustrate, let's add some nested bulleted lists to our running example to flesh out some more details about the basic steps to creating a web page.

In the following example, the top-level numbered lists appear in Maroon Bold. Nested inside these are second-level bulleted lists which appear in Green.


Example 3 - SOURCE CODE

The three basic steps to creating a web page are:
<ol type="1">
<li> Decide on a subject.
   <ul type="disc">
   <li> Business
   <li> Family
   <li> Hobby
   </ul>

<li> Acquire the necessary tools and materials.
   <ul type="disc">
   <li> Web browser
   <li> Text editor or HTML editor
   <li> Graphics and clip-art
   <li> Graphics editor
   </ul>

<li> Write the HTML source code.
</ol>



Example 3 - RESULT

The three basic steps to creating a web page are:
  1. Decide on a subject.
    • Business
    • Family
    • Hobby
  2. Acquire the necessary tools and materials.
    • Web browser
    • Text editor or HTML editor
    • Graphics and clip-art
    • Graphics editor
  3. Write the HTML source code.


Picking Up Where You Left Off


But let's say, for example, that you wanted to create series of lists where the ordering system of each succeeding list picked up where the last one left off? This can be easily accomplished using the start attribute in the <ol> tag. The start attribute specifies which character to use to start the ordering style of the respective list. Hence, if you wanted a list to display items 4, 5, and 6, you would use the type="1" attribute-value pair along with the start="4" attribute-value pair and then insert three list items.

The following example will illustrate:


Example 4 - SOURCE CODE

<b>Putting a Web Page on the Internet</b><br><br>

To create a web page, you must first:

<ol type="1">
   <li> Decide on a subject.
   <li> Acquire the necessary tools and materials.
   <li> Write the HTML source code.
</ol>


Then once you have tested your page in a number of web browsers, you are ready to 'go live'. At this point you would:

<ol type="1" start="4">
   <li> Find a web host.
   <li> Upload your web page to the web host server.
   <li> Brag to all your friends.
</ol>



Example 4 - RESULT

Putting a Web Page on the Internet

To create a web page, you must first:
  1. Decide on a subject.
  2. Acquire the necessary tools and materials.
  3. Write the HTML source code.
Then once you have tested your page in a number of web browsers, you are ready to 'go live'. At this point you would:
  1. Find a web host.
  2. Upload your web page to the web host server.
  3. Brag to all your friends.



Aside from bulleted lists and numbered lists, there is a third style which lends itself to formatting text into a list of terms and their respective definitions and is appropriately called a definition list...





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
<~ BACK TOP NEXT ~>
 
HTML Tutorials |  CSS Tutorials |  Web Hosting |  Domain Names |  Web Design Resources
Iron Spider © Copyright 2004-2011 Robert Darrell