Do you use "list" tags for lists only?
  v3.0 Posted at 10/10/2016 12:23 PM by Dennis Heer

​The HTML list tags <ul> and <ol> should be used for unordered and ordered lists only.

Tip: If your list tag (<ul> or <ol>) doesn't have a list item (<li>) inside it, then it's not a list. Consider using another HTML tag (E.g. <p>).

<ul> A normal text </ul>
Figure: Bad Example - Using the <ul> for a text

<ul><li>A list item</li></ul>

<ol><li>A list item</li></ol>

Figure: Good Example - Using the <ul> and <ol> for lists

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: