3 ms·
In addition to the points that pbhjpbhj and Grumbledour have made, in badly written HTML the 'Click Here' link might be in a completely different part of the DO
by onion2k 6y ago
In addition to the points that pbhjpbhj and Grumbledour have made, in badly written HTML the 'Click Here' link might be in a completely different part of the DOM tree to the rest of the content. For example, a developer could create a <p>Content</p> at the top of the DOM tree, and a <button>Click Here</button> at the end, and then use "position: absolute" to move the button next to the content. Visually they're next to each other but if you strip out the styling they're miles apart. Screenreaders do a decent job of trying to figure out what link goes with the text but understanding HTML is a crapshoot at the best of times.