HTML/CSS Basic Tutorial VI

Source: Internet
Author: User

Form

Contains the area of the form element, the form element is the element that allows the user to enter information in the table consignments (text box, drop-down list, radio box, check box, etc.), using the <form> tag definition.

Text fields and Password fields
<form>Username:<inputtype= "text"name= "FirstName"><BR/>Password:<inputtype= "Password"name= "LastName"></form>

Passwords are replaced with dots.

drop-down list
<form><Selectname= "Cars"><optionvalue= "Volvo">Volvo</option><optionvalue= "Saab">Saab</option><optionvalue= "Fiat">Fiat</option><optionvalue= "Audi">Audi</option></Select></form>
radio button
<form><inputtype= "Radio"name= "Sex"value= "Male" />Male<BR/><inputtype= "Radio"name= "Sex"value= "female" />Female</form>
check box
<form><inputtype= "checkbox"name= "Bike" />I have a bike<BR/><inputtype= "checkbox"name= "Car" />I have a car</form>
Action Properties and Confirmation buttons

When the user clicks the Confirm button, the form contents are routed to another file, and the action properties of the form define the file name of the destination file, which processes the input data:

<formname= "Input"Action= "Html_form_action.asp"Method= "Get">Username:<inputtype= "text"name= "User" /><inputtype= "Submit"value= "Submit" /></form>
Framework

Through the frame, you can display more than one page under a window.

Vertical frame
<HTML><Framesetcols= "25%,50%,25%">  <Framesrc= "/example/html/frame_a.html">  <Framesrc= "/example/html/frame_b.html">  <Framesrc= "/example/html/frame_c.html"></Frameset></HTML>
Horizontal frame
<HTML><Framesetrows= "25%,50%,25%">  <Framesrc= "/example/html/frame_a.html">  <Framesrc= "/example/html/frame_b.html">  <Framesrc= "/example/html/frame_c.html"></Frameset></HTML>

You can mix these two frames together.

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.