3 ms·
The anchor misuse and the wrong headings are the two most serious in my experience. Both of them cause me time and nerves and some poor soul lots of carma every
by gostsamo 6y ago
The anchor misuse and the wrong headings are the two most serious in my experience. Both of them cause me time and nerves and some poor soul lots of carma every single day.
- pc86 6y agoHow does a misused anchor tag cause you "time and nerves?"
- gostsamo 6y agoYou reach a door, you twist the handle, a window at the other end of the room opens. Not sure how to explain it better.
- dathinab 6y agoAs mentioned in the article it can make all kind of tool and normal browser interactions misbehave. I'm frequently annoyed by it, too. But it had gotten much better.
- chiyc 6y agoOne example is one of the first bugs I ever fixed as a working developer. A click event was broken on Firefox only because of a nested anchor and button element. As interactive elements, they shouldn't be nested according to the HTML spec, but it's common for developers to reuse button styles on a link by wrapping it with the button element. The behavior is undefined, which resulted in it working okay on Chrome but not Firefox.
- Kiro 6y agoWhat problems do skipping headings cause?
- gostsamo 6y agoWhen I open a page, I press "1" to go to the main part of the content and to avoid nav bars, side bars and everything inconsequential between the top of the page and the part I'm interested in. If there is no h1, the shortcut is in vane and I start checking with 2, 3, 4 and some other possibilities to find the important stuff or try to find if the article/text/whatever starts with no heading at all and where it is doing it from. Generally, it can take from half a second to 10-20 seconds to orient myself in the structure of the content. There is a mailing list and one of the most annoying things there is that the mail treads page has only h2. I forget it every time and I need to do 1, 2 before I reach the first mail in the tread. If they make it h1 and if every mail in the tread has an h2, it will radically improve navigation and spare me navigating requoted previous mails and mail footers.
- paul_f 6y agoThis seems an edge case to me. For the vast majority of people, having the prime heading in <h2> and subheadings in <h4> would be totally unnoticeable.
- cptskippy 6y agoI come from a time before <button> and use anchors out of habit. I apologize and will try to do better in the future.
- gostsamo 6y agothank you