The difference between button and input _ Experience Exchange

Source: Internet
Author: User

A word summarizing the subject: have the same effect but are more powerful in terms of maneuverability.

The forms section of the HTML 4.01 specification has the following types of controls: Buttons, checkboxes, radio buttons, menus, text input, file Select, hidden controls, Obje CT controls. In addition to Buttons/menus/object controls, all are done by.

What I'm saying here is.

and .

and the

Named in the specification: can be used

and to do the form press-button. Please refer to the detailed definition of these elements for different button types. It 's important to note thatricher performance features than support.

Some differences

We all know that this can be used (in fact it must be used): , must be closed. Rather than: . Because the start tag is mandatory , closing the label is Forbidden .

The more powerful thing is that it can contain content . Its value is not written in the value attribute, but is included in the label. such as :OK Both the start tag and the close tag are required . This way you get the style of the dominant power.

You can write this:

OK, I do., or even insert a picture:, it's great.。 Kind of like, but it's obviously much stronger.

The last point to note is that the images contained by cannot use a hotspot map, that is, you cannot , which is illegal. Of course, you can no longer include input , select , textarea , label , button , form , fieldset , iframe , and isindex (deprecated) elements.

  • Related Article

    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.