Web front-End HTML Basics 2

Source: Internet
Author: User

Form Labels <form></form>

Input Series label 

Text input Box

Placeholder default properties, disappears when entered

Password Password entry box

Radio Radio Box

CheckBox multiple Marquee

Submit button

button (need to use with JS.) What is the difference between button and submit?

File submission: Form form needs to add attribute enctype= "Multipart/form-data"

Select Label

TextArea Multi-line text box

Label label

FieldSet label

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <title>Register</title></Head><Body><H2>Registration page</H2><formAction= "/index/"Method= "POST">    <P>              <label for= "User" > Users:</label> <!--label tag, as in the following "Password:" --<inputtype= "text"name= "User"value= "Egon">    </P>    <P>Password:<inputtype= "Password"name= "pwd"value= "123"></P>    <P>Hobby:<inputtype= "checkbox"name= "Hobby"value= "Bastball">Basketball<inputtype= "checkbox"name= "Hobby"value= "Football"checked= "Checked">Football <!--checked= "checked" by default  --<inputtype= "checkbox"name= "Hobby"value= "Pingpang">Table Tennis</P>    <P>Gender:<inputtype= "Radio"name= "Sex"value= "1"checked= "Checked">male<inputtype= "Radio"name= "Sex"value= "0">female</P>    <P>        <Selectname= "Hometown">            <optionvalue= "Hebei"selected= "Selected">Hebei Province</option> <!--selected= "selected" By default  --            <optionvalue= "Hebei" >Henan Province</option>            <optionvalue= "Hebei">Hunan Province</option>            <optionvalue= "Hebei">Hubei Province</option>        </Select>    </P>    <P>        <inputtype= "Reset">    </P>    <P>        <inputtype= "button"value= "button">    </P>    <P>        <inputtype= "File">    </P>    <fieldset>        <legend>Sign in.</legend>        <inputtype= "text">   </fieldset>    <inputtype= "Submit"value= "Submit"></form></Body></HTML>

Web front-End HTML Basics 2

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.