I’ve noticed that some answers start with a a <h1>
/<h2>
not to structure the answer in different parts --there’s only one-- but to attract eyeballs.
I guess there can be legitimate uses; however in my experience these answers tend to attract my eyes a lot more than the checkmark of the accepted answer or the number of upvotes.
See for example this question. I came back on it through Google one year after I left an answer on it because I believed none of the existing ones were correct. I still believe this revision of an answer is wrong, but it has a <h2>
at the beginning that immediately attracted my attention only because it’s some big bold text.
I don’t feel legitimate to edit the answer to remove the title text because I have an answer there and it could be seen as a conflict of interest, but I think it’s a bad thing for readers that a wrong answer can attract attention only because someone put some big bold text at the beginning.
Is this sentiment shared by others, and if so could/should Stack Overflow do something about it?
product names
are "code"; editing it out (especially when the text is also just noise) is the correct call here. Heading can be useful, but only when the text should and needs to be split into logical parts. having a heading at the top of an answer, when it's not put into parts, doesn't make sense.<h1>
and<h2>
should be focused on accessibility and screenreaders. The title of every question is by itself an<h1>
so the logical sequence should be an<h2>
or<h3>
if you want to.