html image as button
snippet in html

html image as button

user7333

<input type="image" src="http://example.com/path/to/image.png" />

html image button

user6051

<p>Sign in to your account:</p>

<div>
  <label for="userId">User ID</label>
  <input type="text" id="userId" name="userId">
</div>

<input type="image" id="image" alt="Login"
       src="/media/examples/login-button.png">

.output {
    font: 1rem 'Fira Sans', sans-serif;
}

label {
    font-size: .8rem;
}

label,
input[type='image'] {
    margin-top: 1rem;
}

input[type='image'] {
    width: 80px;
}