★ wanayoo — archive 1999 http://www.wdvl.com/Authoring/HTML/Block/Lists.htmlNouvelle recherche | Portail wanayoo
Click Here! logo
internet.com
Join the free
WDVL newsletter!

home

HTML Lists

List items can contain block and text level items, although headings and address elements are excluded.

UL unordered lists
These require start and end tags, and contain one or more LI elements representing individual list items. Unordered lists take the form:
	<UL>
	 <LI><I>... first list item</I>
	 <LI><I>... second list item</I>
	 ...
	</UL>

The TYPE attribute can be used to set the bullet style on UL and LI elements.

OL ordered (i.e. numbered) lists
These require start and end tags, and contain one or more LI elements representing individual list items. Ordered (i.e. numbered) lists take the form:
	<OL>
	 <LI><I>... first list item</I>
	 <LI><I>... second list item</I>
	 ...
	</OL>

The OL START attribute can be used to initialize the sequence number. You can reset it later on with the VALUE attribute on LI elements.

DL definition lists
These require start and end tags and contain DT elements that give the terms, and DD elements that give corresponding definitions. Definition lists take the form:
	<DL>
	 <DT><I>term name</I>
	 <DD><I>term definition</I>
	 ...
	</DL>

DT elements can only act as containers for text level elements, while DD elements can hold block level elements as well, excluding headings and address elements.

W3C: Lists in HTML documents


Up to => Home / Authoring / HTML / Block


internet.com
e-commerce


Click Here!

Copyright 1999-2000 internet.com Corp. Legal Notices. Privacy Policy.

www.internet.com