h1

HTML Lists : Lettered, Roman Numeral, …

September 7, 2010

Your HTML list doesn’t have to have an ugly bullet. They can be lettered (A, B, C) or numbered (1, 2, 3) instead. Additionally, you can set the starting list index (the starting number).

<ul> : Standard unordered, bulleted list
<ol> : An ordered list ( • , •, • , … )
<ol type=”1″> : Numbered, ordered list. (Default) ( 1, 2, 3, … )
<ol type=”A”> : Ordered List via capital letters ( A, B, C, … )
<ol type=”a”> : Lower-case letters ( a, b, c, … )
<ol type=”I”> : Capital roman numerals ( I, II, III, … )
<ol type=”i”> : Lower case roman numerals ( A, B, C, … )
<ol type=”1″ start=”21″ > : Starts list at 21 ( 21, 22, 23, … )
<ol type=”A” style=”font-weight: bold;”> :  Bold letters ( A, B, C, … )
<ul style = “list-style-image: url(http://bit.ly/dcH4Ea)”> Change your bullets inline ( , , , … )

About these ads

One comment

  1. Noticed that the lower case roman numerals incorrectly states (A, B, C …). Also was wondering if WordPress allowed you to change the type of the list. I tried the lower case roman numeral code but remained as normal numbers?



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: