I had the following code suggested to me. My question is to ask if Google will index this.
<form style="display: inline" action="http://example.com/" method="get">
<button>Visit Website</button>
</form>
What are my other options? It’s important for me to retain the button widget look for the link. Previously I used the following but I was told this was not a good idea:
<a href="www.stackoverflow.com">
<button disabled="disabled" >ABC</button>
</a>
I think there is another option with the button click event but I am not sure how to code that and if that will index on Google. I also use jQuery on the web page and have that as an option.
Most important however is that I have been told I must use the “button” widget so the button looks the same as others on the page.
Thanks,
You could use a normal
<a href>link and style it and all the<button>s to look the same with CSS:This will make the
<button>s and links with the class.btnlook virtually identical. The only noticeable difference it that theoutlinewhich elements receive when they have the focus shows up inside of the “real” buttons and around the outside of the links.