One, submit button, reset button
1. Type= "Submit" button
2, type= "Reset" reset button
Second, label label in form forms
Format:
<label for= "Control ID Name" >
Attention:
The value in the label's for property should be the same as the value of the associated control's ID property
Understand:
The function of the label is to get the focus, in the example above, move the mouse to the text (jogging, mountaineering, basketball), you can also activate the control to choose, but if you do not label, the mouse must be moved to the top of the control.
Third, understanding the role of div in typesetting
<div> tags function as a container, in the Web page production process, you can divide some independent logic, put in a <div> tag.
What is the logical part?
It is a set of elements that are related to each other on a page. As shown: The section marked with a red border is a logical part that can use the <div> tag as a container.
Name the div to make the logic clearer!
Put some tags into <div> and divide a separate logical part. To make the logic clearer, set a name for this separate logical part, which is unique.
Format:
<div id= "section name" >...</div>
HTML+CSS Basic Learning Notes (3)