ProblemYou want to create a custom Submit button with an image file, such as the one in Figure 7-14. SolutionUse the input element with the type attribute set to image: <input type="image" name="submit" src="/books/3/27/1/html/2/submit.gif" /> Figure 7-14. The magnifying glass icon acts a Submit buttonDiscussionAlthough inserting an image as a Submit button utilizes HTML, once it's placed in a web page, the Submit button image can be modified through CSS properties like border and margin. See AlsoThe HTML specification for the input element at http://www.w3.org/TR/html4/interact/forms.html#h-17.4. |