Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Sometimes, markup validation is helpful because not every element is actually allowed within every other element.
-
@kescherRant A button in an a tag and vice versa is both total nonsense because it's nothing like semantic HTML.
Either you want to initiate some change within the same page or a submit or so, in which case a button is the right thing, OR you want to point to another resource or anchor, in which case a an a tag is correct. -
@kescherRant well yeah it seems even to be common to make a div with an onclick handler that changes the window URL. WTF. As if people couldn't style links to look any way they want.
-
@kescherRant Oh fuck yeah, we could have butter smooth sub-pixel animations if only people decided to animate translateX/Y. But nooo, either they animate top/left or use some jQuery shit.
Related Rants
The secret to cross-browser compatibility is just wrapping every single element in an extra div, just for good measure.
rant
divs everywhere