In 2020, Andy Bell suggested organizing attribute values for better code clarity and modularity. By grouping class names distinctly, developers can enhance their CSS's readability and easier maintenance. The article discusses how attribute values in HTML can include any string and offers creative spacing and visualization methods, like emoji or special characters. However, it warns against excessive complexity that may require changes in CSS targeting. This flexibility aims to make the code self-descriptive while avoiding confusion in visual representation.
Andy proposed grouping attribute values to enhance readability and maintainability of code, allowing for more modular class designs with visual distinctions.
An attribute value is a string. Attribute values on HTML elements may be any string value, including empty strings, without restrictions on text.
Collection
[
|
...
]