Tuesday, July 24, 2012

HTML Lists

Lists are nothing but a series of names,words or related objects written or printed consecutively, typically one below the other.So how do you represent lists?.
 Basically HTML lists can be classified into ordered and unordered lists.
  •    <ol></ol>-Ordered lists refers to listing items in a orderly or numbered fashion.
  •   <ul></ul>-Unordered lists refers to listing items in a bulletins or points without any specific numbering.
This is just the definition of a list.To include a list item,you need to use <li></li> tags   with the list data in between.This tag is enclosed between the tags mentioned above.

There are few more type of list you must have come across .
  • <dl></dl>-Definition lists defines a definition list. can be generally seen in webpages having dictionaries.
    • <dl></dl> defines the item in the list and <dd></dd> describes that item.
  • <menu></menu>-Menu lists defines a Menulist.
    • To include a list item,you need to use <li></li> tags with the list data in between.
  • <dir></dir>-Directory lists defines a directory list.
    • To include a list item,you need to use <li></li> tags with the list data in between.


(Only ordered and unordered lists have been displayed ..other lists are for you to try)

Now open notepad,play with the above codes,save it as index.html and open it in your favourite browser.see what happens and stay tuned for next tutorial.if you have any doubts, feel free to comment and i will get back to you with your doubts.you can Download the source file here and try out our new html editor in the sidebar.

1 comments:

  1. Hey, you have an interesting blog. Your blog has been included in my blog that is exclusively dedicated to Coimbatore bloggers. Hope to see more posts from you. I am a writer and I love reading blog posts.

    ReplyDelete