Key Points
To create a numbered (ordered) list, use the <ol> tags. For a bulleted (unordered) list, use the <ul> tags.
Within the <ol> or <ul> tags, use <li> tags for each list item. These tags are all two-sided. HTML does not require the closing </li>, but XHTML does.
Ordered and unordered lists can be nested. Enclose the second-level <ul> or <ol> list within a <li></li> tags inside the main list.
To use a different bullet character or numbering style, use the
style="list-style-type:type"argument in the <ul> or <ol> opening tag.To create a definition list, use the <dl></dl> tags. Within the <dl> tags, enclose each term in <dt> tags, and enclose each definition in <dd> tags.
You can display special characters on a Web page by using HTML character ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access