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