Tuesday 17 October 2017
html - Image for a submit button - which way is best?
Answer
Answer
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:
type="submit">
/>
Version
2:
type="image" src="mybutton.jpg" border="0" alt="Submit"
/>
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.
type="submit"
class="styledButton>
php - file_get_contents shows unexpected output while reading a file
I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...
-
I have an app which needs a login and a registration with SQLite. I have the database and a user can login and register. But i would like th...
-
I got an error in my Java program. I think this happens because of the constructor is not intialized properly. My Base class Program public ...
-
I would like to use enhanced REP MOVSB (ERMSB) to get a high bandwidth for a custom memcpy . ERMSB was introduced with the Ivy Bridge micro...
No comments:
Post a Comment