Is it acceptable practice to hyperlink my headings (h2
etc.)? For example:
Header X
blurb …
Header Y
blurb …
Does this violate usability principles? How about web accessibility/WCAG principles? I could not find a concrete answer to this.
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communityI think it actually makes quite a lot of sense. Here are some cases, were I think this would be usefull:
A Link can be included in any element, so putting it inside a heading is fine. From a usability stand point, it would be weird, to just link part of the heading. If the heading has a link, the whole heading should be a link.
Do this:
Not this: