Wednesday, January 07, 2009

HTML: Ordered Lists

Getting started with HTML is an HTML tutorial by Dave Raggett. I'll try out a part of it in this blof entry to test myself. Dave points out that one of the three types of lists which can be used is an ordered list. The symbols used to create an ordered list are < ol >, < /ol >, < li > and < /li >. < li > and < /li > are bookends to individual list items enclosed within them. All the lined items are contained within < ol > at the start and < /ol > at the end. So on with the experiment. You don't get to see the symbols when the web page is published. You see only the ordered list if the code is done correctly. Also, in order to show the symbolic HTML commands I had to put spaces between the < > and the letters in between; something not done when the symbols are used within codes. The list:


  1. Leading off for the Yankees, Johnny Damon


  2. Batting second, Derek Jeter


  3. Batting third, Mark Teixeira


  4. Batting fourth, Alex Rodriguez


  5. Batting fifth, Hidecki Matsui


  6. Batting sixth, Xavier Nady


  7. Batting seventh, Jorge Posada


  8. Batting eight, Robinson Cano


  9. Batting ninth, Brett Gardner






Unordered lists rely on the same dynamics with one difference. Instead of the begining of the list starting with ol and ending with /ol between symbols < and >, the letters are ul. So it would go like this



  • Yankees


  • Rays


  • Red Sox


Labels:

0 Comments:

Post a Comment

<< Home