|
|
|
|
![]() ![]() |
Mar 28 2007, 04:03 AM
Post
#1
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,994 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Unordered lists are one of the three list types in (x)html. The others are Ordered Lists and Definiton Lists.
The w3c page of information about lists is here They all behave the same as (x)html elements, but there are some differences between them. Read the Specification page linked above to know more that you need to know about them. Only difference between html4 and xhtml is the tags must be lower-case and closed for xhtml to be valid. Ordered Lists have numbers preceding them. Paste the following code into a file and display it in your Browser to see the effect. CODE <ol> <li>list item here</li> <li>list item here</li> </ol> Unordered Lists have other identifying character preceding them. Paste the following code into a file and display it in your Browser to see the effect. CODE <ul> <li>list item here</li> <li>list item here</li> </ul> Definition lists are similar to Unordered Lists, but the unique characteristic of DL's is that DL's allow for more than one sub-level of detail under them. CODE <dl> <dt>dt item here</dt> <dd>dd item here</dd> </dt> <dt>dt item here</dt> <dd>dd item here</dd> <dd>dd item here</dd> </dt> </dl> Notice how the second <dt> has an additional <dd> under the same <dt>? Can't do that with OL's or UL's *unless you nest them*, which is an option, of course. Ordered List Example here Unordered List Example here Definition List Example here And the (numbers or images preceding the lists) can be removed by declaring "{ list-style-type: none; }" in the style declaration for them. These example pages have little styling on them. They are pretty much default styling. Adjust them with padding and margin to suit your needs. Simple, huh? A major point to notice is that Lists are block items by default, so they DO NOT require a wrapping DIV around them. A View > Source of that link with an example of nested UL's here will show that the UL can be given an ID and targetted by the CSS, classed, Floated or otherwise positioned the same as a div without any wrapper around it. Cool, So save your div's for where you need them. Lists aren't on that list... (pun intended). |
|
|
|
Mar 28 2007, 04:35 AM
Post
#2
|
|
|
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 6,447 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() |
Well to add a bit to the DL tags, in way those would be use primary as a way to set up a definition of a word and it source, something like this:
word This is the meaning of the word and where it comes from. .I do believe dictionary.com is using that tag, although I haven't verified that, but it would seem plauseiable to use it. Of course their are many other reasons, primaryily used for organzing information, heck you can even use this to set up work citations on a website if your doing a research project. |
|
|
|
Jun 23 2007, 05:44 PM
Post
#3
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 66 Joined: 23-June 07 Member No.: 45,329 |
hey how to set margin in lists ... like left margin ...margin b/w lists.?
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 07:22 PM |