Removing list styles without affecting semantics. | Manuel Matuzović

A simple tweak that simplifies the common approach to "lists that don't look like lists" with HTML/CSS and sidesteps any semantic/accessibility concerns. Neat!

you can use a string as the value of the `list-style-type` property.
ul { 
    list-style-type: "";
}

Explore Other Notes

  • <!DOCTYPE html> <html> <head> <title></title> </head> <body> <p>A simple tweak that simplifies the common approach to "lists that don't look like lists" with HTML/CSS and sidesteps any semantic/accessibility concerns. …</p> </body> </html>
  • Murray Adcock.
Journal permalink