How to Make Lists of Links for HTML5 and CSS3 Programming
Many web pages turn out to be lists of links in HTML5 and CSS3 programming. Because lists and links go so well together, it’s good to look at an example. Notice this list of links to books written by a certain author.
This example has no new code to figure out, but the page shows some interesting components:
The list: An ordinary unordered list.
Links: Each list item contains a link. The link has a reference (which you can’t see immediately) and linkable text (which is marked like an ordinary link).
Descriptive text: After each link is some ordinary text that describes the link. Writing some text to accompany the actual link is very common.
This code shows the way the page is organized:
The indentation is interesting here. Each list item contains an anchor and some descriptive text. To keep the code organized, web developers tend to place the anchor inside the list item. The address sometimes goes on a new line if it’s long, with the anchor text on a new line and the description on succeeding lines.
Normally, the tag goes at the end of the last line, so the beginning tags look like the bullets of an unordered list. This makes it easier to find your place when editing a list later.