Skip to main content
Making clearer that is not longer valid solution.
Source Link

Use:

<a href="http://www.stackoverflow.com/"> <button>Click me</button> </a> 

Unfortunately, this markup is no longer valid in HTML5this markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach. Use another approach.

Use:

<a href="http://www.stackoverflow.com/"> <button>Click me</button> </a> 

Unfortunately, this markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

Use:

<a href="http://www.stackoverflow.com/"> <button>Click me</button> </a> 

Unfortunately, this markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

Removed historical information (e.g. ref. <http://meta.stackexchange.com/a/230693> and <http://meta.stackoverflow.com/questions/266164>), etc.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Use:

<a href="http://www.stackoverflow.com/"> <button>click<button>Click me</button> </a> 

Edit 22-06-2013: This Unfortunately, this markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

<a href="http://www.stackoverflow.com/"> <button>click me</button> </a> 

Edit 22-06-2013: This markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

Use:

<a href="http://www.stackoverflow.com/"> <button>Click me</button> </a> 

Unfortunately, this markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

added 153 characters in body
Source Link
Niels Keurentjes
  • 42.1k
  • 9
  • 103
  • 138
<a href="http://www.stackoverflow.com/"> <button>click me</button> </a> 

Edit 22-06-2013: This markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

<a href="http://www.stackoverflow.com/"> <button>click me</button> </a> 
<a href="http://www.stackoverflow.com/"> <button>click me</button> </a> 

Edit 22-06-2013: This markup is no longer valid in HTML5 and will neither validate nor always work as potentially expected. Use another approach.

Source Link
D'Arcy Rittich
  • 172k
  • 41
  • 298
  • 287
Loading