DaveinLondon
01-17-2005, 11:44 PM
What is the diference in using the <button> vs the <input> tags ?
eg:
<button type="submit" value = "rooms" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Rooms </button>
OR
<input type="submit" value = "rooms" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >
why have two tags ?
which is best to use ?
are they both supported in DOM ?
thanks for any clarification !
eg:
<button type="submit" value = "rooms" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >Rooms </button>
OR
<input type="submit" value = "rooms" onMouseover="this.style.backgroundColor='red'"
onMouseout="this.style.backgroundColor='lime'" name = "btn"
class="btn" >
why have two tags ?
which is best to use ?
are they both supported in DOM ?
thanks for any clarification !