HTML&CSS Basic Learning Note 1.26-input Reset form

Source: Internet
Author: User

Resetting the form

The <input> 's [Type] property value is "button" when it represents a normal button, which is equivalent to a <button> tag.

When the [Type] property value of <input> is "reset", it indicates that the form is reset and that it behaves as a button on the page, but when clicked on, it resets the form to the state when the page was just loaded.

Look at some code:

<!DOCTYPE HTML>  <HTMLLang= "en">  <Head>      <MetaCharSet= "UTF-8">      <Linkrel= "stylesheet"type= "Text/css"href= "Index.css">      <title>Form</title>  </Head>  <Body>  <formAction="/"Method= "Get">      <H2>Input label--Reset form</H2>      <P><label for= "Account">Account:</label><inputtype= "text"ID= "Account"/></P>      <P><label for= "PSD">Password:</label><inputtype= "Password"ID= "PSD"/></P>      <inputtype= "Reset"value= "Reset">  </form>  </Body>  </HTML>  

More learning content, just in the code bud Net Http://www.mayacoder.com/lesson/index

The result is this:

After Reset:

HTML&CSS Basic Learning Note 1.26-input Reset form

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.