DEV Community

Discussion on: Style your next blog with vanilla HTML. No CSS. 😡

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€ • Edited

I style stuff with aria-* where possible because A its stateful, B its style that depends on good accessibility, yes thats right force yourself to write good accessible websites. and for anything not aria, schema.org has you covered. either way, you are not allowed to make crap wasteful websites with my method.

[itemprop='product'] {
    [itemprop='price'] {
        color: reallygreen;
        font-size: 3em;
    }
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
vaibhavkhulbe profile image
Vaibhav Khulbe

Definitely! Accessibility is really important. ARIA labels seem really promising. Thanks for addressing this.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

You might try some of the ARIA linters out there.

If you use no framework, no NPM, no eslint, there still seems to be enabler CLI.

Thread Thread
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Agreed, Aria can be harmful if used in incorrectly. Great suggestion.