Tuesday, October 1, 2019

html - Image for a submit button - which way is best?




In order to use an image as a form's submit button, I have come across two ways and would like to know which one is correct/best-practice.



Version 1:







Version 2:







I personally feel that the first version is better because it makes semantic sense and has a type of "submit". In the second version its saying the input is of type "image" which doesn't mean much to me as a human.



Which one should I go with?


Answer



Personally I would set it as a background rather than an image inside the button. So you would get the following.



No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...