Differences between BUTTON and INPUT _ experience exchange

Source: Internet
Author: User
Difference between BUTTON and INPUT

A general topic:WithSame role, but more powerful in terms of manageability.

The Forms section in the HTML 4.01 standard has the following control types: buttons, checkboxes, radio buttons, menus, text input, file select, hidden controls, and object controls. in addition to buttons/menus/object controlsComplete.

What I am talking about here is:

And.

And

Standard Middle Name: available

AndTo create a form. For details about the button types, see the definition of these elements. Note thatRatioSupports richer performance features.

Some differences

Everyone knowsIt can be used in this way (in fact, it must be used in this way ):Must be closed in this way. Instead:. Because the start label isRequiredAnd the close tag isDisable.

RatioWhat's worse is that it canIncluded content. Its value is not written invalueAttribute, but included in the tag. For example:OK.Both the start and end tags areRequired. In this way, you will gain the dominant power of style.

You can write as follows:

OK, I do., Or even insert an image:, it's great.. SimilarBut it is much more powerful.

Note thatYou cannot use hotspot maps.This is invalid. Of course, it cannot includeinput,select,textarea,label,button,form,fieldset,iframe, Andisindex(Not recommended) element.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.