mdn / sprints

Archived: MDN Web Docs issues are tracked in the content repository.
https://github.com/mdn/content
Creative Commons Zero v1.0 Universal
150 stars 142 forks source link

Remove ul and ol from examples #3962

Closed ghost closed 3 years ago

ghost commented 3 years ago

URL(s)

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav

Request type

Details

Result

Screenshot_20201212-223036.png

chrisdavidmills commented 3 years ago

Nah. Even though it might seem like "too much markup", the examples are showing lists of links, so using a list is a semantic improvement on just multiple anchor elements.

ghost commented 3 years ago

@chrisdavidmills

It could be argued that a list should be arranged vertically perhaps with dots that identify an element on the total or a number if the order is important.

Screenshot_20201213-121739.png

🙂

The use of ul however is not new to me. It gives you the feeling of keeping count in code, but you could also consider the childNodes as a list.