HTML: Button tag

We can customize the appearance of button using the <button> tag.

 <button>…..</button>
AttributeValueDescription
autofocusautofocusSpecifies that a button should automatically get focus when the page loads
disableddisabledSpecifies that a button should be disabled
formform_idSpecifies one or more forms the button belongs to
formactionURLSpecifies where to send the form-data when a form is submitted. Only for type=”submit”
formenctypeapplication/x-www-form-urlencoded
multipart/form-data
text/plain
Specifies how form-data should be encoded before sending it to a server. Only for type=”submit”
formmethodget
post
Specifies how to send the form-data (which HTTP method to use). Only for type=”submit”
formnovalidateformnovalidateSpecifies that the form-data should not be validated on submission. Only for type=”submit”
formtarget_blank
_self
_parent
_top
framename
Specifies where to display the response after submitting the form. Only for type=”submit”
namenameSpecifies a name for the button
typebutton reset submitSpecifies the type of button
value textSpecifies an initial value for the button
vikashdev k
Latest posts by vikashdev k (see all)
Tagged : / / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x