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 ...
-
I would like to split a String by comma ',' and remove whitespace from the beginning and end of each split. For example, if I have ...
-
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 have a method in repository with this implementation which returns a Task Task > GetAllAppsRequestAsync(); I write the getter which cal...
No comments:
Post a Comment