Dumb SEO Questions

(Entry was posted by Jay Lo on this post in the Dumb SEO Questions community on Facebook, Thursday, January 10, 2019).

Where should we put the anchor tag for a button?

Where should we put the anchor tag for a button?

We know that for an internal link, it`s better to put relevant anchor text. However, if we do this for a < button > and nest an anchor tag, it will only be clickable in the text part.

So is it a good idea to nest the whole button in an anchor tag? How do we make sure we still follow the "relevant anchor text best practice?"

Is using < a > directly and style them as a button instead of using < button > tag the best practice?

Let me know your thought,

Thank you,

This question begins at 00:27:44 into the clip. Did this video clip play correctly? Watch this question on YouTube commencing at 00:27:44
Video would not load
I see YouTube error message
I see static
Video clip did not start at this question

YOUR ANSWERS

Selected answers from the Dumb SEO Questions G+ community.

  • Benj Arriola: If it is not a form you submit and is used for navigation, always use an tag. If you want it to visually look like a button for design purposes, do not nest an tag and a <button> or <input> tag. Just use CSS and style the link to look like a button.
  • Lisa Brown: Nesting a button inside an anchor won`t validate. Use and style accordingly.
  • Jay Lo: Thank you, Benj and Lisa !!!

View original question in the Dumb SEO Questions community on Facebook, Thursday, January 10, 2019).

Reference Links