Welcome to Dream.In.Code
Getting Help is Easy!

Join 107,664 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,059 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Guide to the Web and Design part VII

 
Reply to this topicStart new topic

> Guide to the Web and Design part VII, Lists

capty99
Group Icon



post 3 Oct, 2006 - 10:09 PM
Post #1


HTML Basics – Lists

Lists are just a way to display information and html has some built in mechanisms to work with them. You have unordered and ordered lists. The first just using bullets and the latter using numbers.

The tags are <ul> for an unordered list and <ol> for an ordered list. With the container <li> to show information that will go after each bullet or number. Example :
CODE

    <ol>
        <li> information </li>
        <li> information </li>
            <ul>
                <li>more info </li>
                <li>more info </li>
            </ul>
        <li> information </li>
    </ol>

Notice I nested some lists in there just to see how you could possibly use them.


Now , if you have read through all the Guides to the Web that I have posted, go ahead and combine all of this information together and you can build yourself a couple pages that link between each other and display both graphics and text. Think of an idea , just something simple that would require a few pages to build a website for. Make up a company and have an about page, news page etc.... and just type out some html. The best way to learn this stuff is by playing with it and getting everything down pat.

This post has been edited by capty99: 4 Oct, 2006 - 07:12 AM
Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!

Arbitrator
Group Icon



post 4 Mar, 2007 - 05:42 PM
Post #2
Actually, that list is invalid. The inner lists should be inside a list item (li) element:

CODE
<ol>
  <li>information</li>
  <li>information
    <ul>
      <li>more info</li>
      <li>more info</li>
    </ul>
  </li>
  <li>information</li>
</ol>


Just to add to the information:
  • Ordered lists (ol) list content that is inherently ordered (changing the order would change or harm the meaning). Such cases include basic a table of contents (yes, I know not using a table for a table of contents may sound strange) or a simple list of instructions, like how to make a peanut butter and jelly sandwich.
  • Unordered lists (ul), like this one, list content where the order doesn’t matter such as a list of your favorite things or all of your cats’ names.
  • Definition lists (dl) list a term and one or more associated definitions. They’re good for defining terms (like a dictionary) or associating groups under an umbrella term. Here’s an example:
    • CODE
      <dl>
        <dt>“bright” synonyms</dt>
        <dd>shining</dd>
        <dd>sparkling</dd>
        <dd>gleaming</dd>
        <dt>“bright” antonyms</dt>
        <dd>cloudy</dd>
        <dd>murky</dd>
        <dd>dusty</dd>
      </dl>
Go to the top of the page
+Quote Post

hiphop_13
*



post 1 Aug, 2007 - 11:49 AM
Post #3
Hello, its nice from you to share this information, i was starting to forget about html bcause i ddnt use since i took it in university as a course
well im waiting for the next tutorial to see CSS and i will wait your javascript posts..
Thanks for these tutorials they really help. smile.gif
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 8/29/08 10:38PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month