Previous rule | Règle n°73 | Next rule

The visually represented elements as a list are tagged in an appropriate way in the source code

In the content of a book, we sometimes need to list some text. For this, dash or chips of different forms are used. In an HTML page, this is called a list.

Objectives

  • Improve text readability
  • Structure list content

Implementation

  • Use ul (unordered lists) and ol (ordered lists) tags to wrap the list, and use li tags for each individual list item. The chip shape is chosen in CSS.
  • Definitions lists are to be marked with the tags dl, dt and dd

Control

  • Check the source code of the HTML page of epub : Lists must be in a ul tag, ol or dl and each element is in a li, dt or dd tag

Validation

  • Needs to be verified by a human.

Information