Re:Linting HTML using CSS
by yokohummer7 on Sunday March 12, 2017 @04:43AM
(#13849856)
Wait, what should I use instead then?
[ Parent
| on HN ]
The button element should be used for interaction that is not navigation to a different url.
What about anchors using name?
Re:Linting HTML using CSS
by lexicality on Sunday March 12, 2017 @07:12AM
(#13850211)
They've been deemed obsolete with HTML5 - you should use the id attribute on the element the <a> would be naming.
Re:Linting HTML using CSS
by oneeyedpigeon on Sunday March 12, 2017 @07:00AM
(#13850180)
Always supply an href so JavaScript-less viewers can still activate the link. Attach events via JavaScript rather than HTML attributes.
Re:Linting HTML using CSS
by tompazourek on Sunday March 12, 2017 @04:54AM
(#13849889)
I was thinking the same when I saw that... Not sure if it's viable, but maybe buttons?