Html Forms

You might have at some point in web design decided not to use the grey submit botton in forms, but decided to use an image for the submit button. If you don’t know the little trick to do this, then this post is for you. Here is a trick to do that.

Normally HTML forms are in this format.
<form action=”http://site.com” method=”post”>
<input type=”text” name=”user” />
<input type=”submit” value=”submit” /></form>

Here is what you need to alter.

The second input type should be changed to “image”, then src=”picture url” should be added.

Your code should now look in this manner


And that’s it.

LEAVE A REPLY

Please enter your comment!
Please enter your name here