Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this valid html

<a href="/selection"><input type="button" class="big" value="Somewhere"></a>

because in IE it doesnt click....any ideas why..all other browsers seem fine

like image 665
Matt Elhotiby Avatar asked Jan 18 '23 20:01

Matt Elhotiby


1 Answers

It's invalid HTML — an <input> cannot be as a descendant of an <a> element:

HTML Validator Screenshot

Source: http://jsbin.com/iyuxeb

like image 116
rjb Avatar answered Jan 27 '23 10:01

rjb