The order matters and shouldn’t get lost in the markup. ![]() A table of contents represents a list of chapters and subheadings in the order in which they appear in the content. I think an ordered list is more appropriate in this case. I decided to build off of Julie’s approach and use a list however, I opted for an ordered list ( ) instead of an unordered list ( ). Table elements aren’t great for hierarchical data, and while definition lists can technically be nested, the semantics didn’t seem correct. ![]() If I wanted to show subsections in the table of contents, though, I didn’t have any good options. So, once again, the relationship between the title and the page number would be obvious.Įither of these seemed like good options until I realized that they really only work for single-level tables of contents, namely, only if I wanted to have a table of contents with just chapter names.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |