One, unordered list label UL
<ul>
<li> Information </li>
<li> Information </li>
......
</ul>
Code explanation: One black point for each <li> before
Second, ordered list label OL
<ol>
<li> Information </li>
<li> Information </li>
......
</ol>
Code explanation : Each <li> before each with a sequence number, the default starting from 1
Third, <a> label
1. <a href= "Destination url" title= "mouse over displayed text" > Link display text </a>
2. Open the link in the new browser window
<a href= "Destination url" target= "_blank" >click here!</a>
3. Email link
<a href= "mailto:[email protected]?subject= theme &body= mail Content" > Join Mail link </a>
Code Explanation: There are multiple parameters behind mailto, the first parameter must be "?" At the beginning, the following parameters are separated by "&".
Iv. Table Labels <table>
<table summary= "Table text Introduction, increase the readability of the table, will not be displayed in the browser" >
<caption> Title Text </caption>
<tr>
<td> List One </td>
<td> column Two </td>
</tr>
</table>v. insert a picture label Code explanation: 1, src: Identify image position 2, alt: Specify the descriptive text of the image, when the image is not visible, you can see 3, title: The text displayed when the mouse slides over the picture 4, the image can be GIF, PNG, JPEG format image file
Vi. form labels, interacting with users
<form method= "transfer Mode" action= "Server file" ></form>
Code Explanation:
1, <from>:<form> label in pairs appear, start with <from>, to </from> end
2. Action: Where the data entered by the browser is transmitted, such as a PHP page (save.php)
3, Method: The way of data transmission (get/post)
Note:
1. All form controls (text boxes, text fields, buttons, radio boxes, checkboxes, and so on) must be placed between the <form></form> tags, and no user input information may be submitted to the server.
2, the difference of Method:post/get this part belongs to the question which the backend considers.
Seven, text input box, password input box
<form>
<input type= "Text/password" name= "name" value= "text"/>
</form>
Code Explanation:
1. Type:
When type= "text", the input box is a text input box
When type= "password", the input box is the password input box
2, Name: For the text box name, in case the background program ASP, PHP use.
3. Value: Sets the default value for text input. (General cue effect)
Example:
<form>
Name:
<input type= "text" name= "MyName" >
<br/>
<input type= "password" name= "pass" >
</form>
Eight, text field <textarea>
<textarea rows= "Number of rows" cols= "columns" > Text </textarea>
Cases:
<form method= "POST" action= "save.php" >
<lable> Contact Us </lable>
<textarea rows= "cols=" > enter the content here ....</textarea>
</form>
Nine, radio box, check box, drop-down box
<input type= "Radio/checkbox" value= "value" name= "name" checked= "Checked"/>
Code Explanation:
1, type= "Radio" Radio Box
type= "checkbox" check box
2, Value: Submit data to the server values (background program PHP use)
3, Name: For the control name, in case the background program ASP, PHP use
4. Checked: When checked= "Checked" is set, this option is selected by default.
Example 1 (Single/check box):
Note: The same group of radio buttons, name value must be consistent, such as Example 1 is the same name "Radiolove", so that the same group of radio buttons can play the role of radio.
Example 2 (drop-down box):
Code Explanation:
1. <option value= "Submit Value" > Options </option >
2, set selected= "Selected" property, this option is selected by default
HTML+CSS Basic Learning Notes (2)