HTML (3): Framework + form, html framework form

Source: Internet
Author: User

HTML (3): Framework + form, html framework form
1. Embedded framework

In HTML<Iframe>A label (also known as an inline framework element) represents a nested browser context, which is actually used to embed another HTML page in the current page. You can set the width and height of the frame, and whether to display the scroll bar and border. The corresponding attribute names are: width, height, scrolling, and frameborder. Among them, scrolling can be set to three values: yes (always show the scroll bar), no (never show the scroll bar), and auto (default value, scroll bar appears as needed ).

1 <body>2   <iframe src="http://www.baidu.com/" width="1000" height="400" scrolling="auto"></iframe>3 </body>

2. form)

<Form> tags are used to create HTML forms for user input. A form can contain input elements, such as text fields, check boxes, single quotes, and submit buttons. The form can also contain menus, textarea, fieldset, legend, and label elements. Form is used to transmit data to the server.

  • Basic Structure of a form
1 <form name = "form" action = "URL" method = "get"> 2 Username: <input type = "text" name = "uname"/> 3 password: <input type = "password" name = "passwd"/> 4 </form>
  • Description of configurable attributes and values of a form

  

3. input (Form element: input box)

<Input> tags are used to collect user information. The input field has many forms based on different type attribute values. The input fields can be text fields, check boxes, text controls after masks, single-choice buttons, and buttons.

<Input> one of the most important attributes of a tag is the type attribute. Different input tags vary depending on the value set in the type attribute.

  • Description of configurable partial values of the type attribute

Reference: HTML <input> tag

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.