Pages

Tuesday, January 11, 2011

Ordered List Element

The ordered list element is used to create a list of items in an orderly manner in which items are read and followed in a specific sequence. A list of instructions or procedures and table of contents are some good examples that the ordered list element makes it easy for you to handle. Each item is displayed with a number.

Listed below are the most common attributes you can use for the ordered list element:
  •  class - provides the class or classes of the heading. This attribute is used to identify the name of the style class or classes to be used for rendering.
  • id - provides a unique name for the heading.
  • lang - provides the language in which the enclosed content is coded.
  • style - provides a cascading style sheet (CSS) properties to the heading.
  • title - privides a text title for the heading. Most web browser displays the value of the title as "tooltip".
  • type - provides the type of list item such as A,a,I,1.

Here's an example on how to use the ordered list <ol> element:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
         <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
         <mate name="keywords" content="blog, web development" />
         <title>the ORDERED LIST element</title>
     </head>

     <body>
       <h1>
         the ORDERED LIST element
       </h1>
       <ol>
           <li>In a large bowl, with a mixer on a medium speed, beat 1 1/2 cups butter, sugar, orange peel and vanilla until smooth. Beat in egg until well blend.</li>
           <li>In a medium bowl, mix flour, baking powder and salt. Add to butter mixture, stir to mix, then beat on low speed until dough comes together, about 5 minutes (see note preceding). Mix in cranberries and coconut</li>
           <li>Shape dough into 1-inch balls and place about 2 inches apart on buttered 12 by 15-inch baking sheets</li>
           <li>Bake in 350<sup>o</sup> regular or convection oven until cookie edges just begin to brown, 11 to 15 minutes</li>
       </ol>
   </body>
<html>








   

0 comments:

Post a Comment