Full width home advertisement

How To

Science

Post Page Advertisement [Top]


Clickable buttons can also be created using the <input> tag by setting its type attribute to button. The type attribute can take the following values:

Type
Description
submit
This produces a button that automatically submits a form.
reset
This produces a button that automatically resets form controls to their initial values.
button
This produces a button that is used to trigger a client-side script when the user clicks that button.
image
This produces a clickable button but we can use an image as background of the button.

Example

Here is example HTML code for a form with three types of buttons:

<!DOCTYPE html>

<html>

<head>

<title>Scholars Globe File Upload Box Examples</title>

</head>

<body>

<form>

<input type="submit" name="submit" value="Submit" />

<input type="reset" name="reset" value="Reset" />

<input type="button" name="ok" value="OK" />

<input type="image" name="imagebutton" src="/html/images/logo.png" />

</form>


</body>

</html>

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib