Download our Free HTML Cheat Sheet - Quick Reference for Beginners

HTML list code generator

This generator will allow you to create a HTML list of items. Set the options for the list, then generate the code. You can copy and paste the generated code into your webpage, or you can choose to send the generated code to your email. This allows you to create the HTML list code for later use when using a mobile device.
Example:
  • First list item
  • Second list item
  • Third list item

Basic options

If you have multiple lists on the same page, each will need a different ID
List ID:
Not seen - only needs to be unique on the page you paste this into (not here). If that page already has an element with this ID, the two will conflict since they'll share styling and scripts.
List type:
List position:

Affects how the list items wrap
Layout:

List items

Type or paste list items into the box below - one per line

List style

Font color:
Font family:

Font size:
Font style:

Code options

Choose how you want the code created
CSS layout:
Unsure? Leave it inline

Frequently asked questions

What's the difference between "outside" and "inside" list position?

"Outside" (the default) keeps the bullet/number outdented from the text, so wrapped lines of a long item line up under the first word, not under the bullet. "Inside" pulls the bullet into the text block, so wrapped lines align under the bullet instead - it can look tidier for short single-line items.

Can I use numbers instead of bullets?

Yes - choose "decimal" for 1, 2, 3, or one of the roman numeral/letter options (lower-roman, upper-alpha, etc) for a numbered/lettered list instead of bullets.

What does putting the list in a "container" do?

It wraps the <ul> in a <div> you can style separately - useful for giving the whole list a background colour, border or fixed width, distinct from the text styling of the list items themselves.

Can list items contain links or other HTML?

Yes - whatever you type or paste into the list items box is placed inside each <li> as-is, so a line like <a href="page.html">Read more</a> will work as a real link once you paste the generated code into your page.