Donate SIGN UP

HTML codes

Avatar Image
Penny | 21:02 Fri 15th Apr 2005 | Technology
1 Answers

if you have a list of things..can you get an html code that puts them in alphabetical order? i have a HUGE list that needs to be in alphabetical order on my homepage, but it would take ages if i put them in order myself

thanks

Gravatar

Answers

Only 1 answerrss feed

Best Answer

No best answer has yet been selected by Penny. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.

The two HTML tags for lists are <ol>...</ol> for Ordered List and <ul>...</ul> for Unordered List. However, neither of them alter the arrangement of the list items, <ol>...</ol> tells the browser to put a number or letter in front of items, wheras <ul>...</ul> tells the browser to just put a disc, sauare, circle or nothing in front of the list items.

To order your list I suggest you copy it into a Word Processor or Text Pad, and use its sort routine, then transfer the sorted list back to your HTML. There is no need to strip out the <li> and </li> List Item tags before sorting as the order will be deternined by what follows the tags.

Only 1 answerrss feed

Do you know the answer?

HTML codes

Answer Question >>