HTML Learning Summary
First, the common label
own common tags are html, title, head, Body, Div, H, p, A, IMG, input, table, BR, UL, DL, OL
1. html, title, head, Body tag (4)
<! DOCTYPE html>
<title></title>
<body>
</body>
2, Div, H, p tags (3)
1) H tag is the title label, H1 is the largest title label, h6 bit the smallest label;
2) P tag is a paragraph label, a <p> </p> content represents a paragraph, the content is not necessarily text;
3) The largest paragraph label for typesetting, mainly used for typesetting.
3, a label (1)
A tag is used to define hypertext marker symbols, and there are two main functions:
"" Jump
"" Href= "#某个标签的id", jump directly to the next label position
4. IMG Label (1)
The role of the IMG tag is to add the corresponding image. For example:
"Baidu"
1) src= "" The address of the indirect picture in quotation marks
2) title= "" in the quotation marks to write the title of the picture, the mouse will be displayed on the
3) When the picture is not found, the text in quotation marks is displayed
4) Height and width, respectively, of the picture
5) How to set the image hyperlink: <a href= "www.baidu.com" ></a>
5. Input box label (1)
Used to collect user information, such as:
<input type= "text" value= "username" >
1) type has the following kinds:
"" Text text "" Submi submitted
"" Image Image form (think text) "" Radio single Box
CheckBox check box (set default: checked= "123")
"" Password password
2) Name, Value property
Most of the above types can add the value and the Name property.
"" Name: Easy to retrieve data in the background, not displayed in the browser;
"Value: Default display of values
6, table label (1)
The table tag is for typing, for example:
<table>
<tr>
<th> name </th>
<th> Date of birth </th>
<th> Age </th>
</tr>
<tr>
<td> Zhang San </td>
<td>19800101</td>
<td>35</td>
</tr>
</table>
"" A table represents a table
"" A TR denotes a line
"" A TD denotes the contents of a lattice
Two table methods in one row:
"The method of merging two tables in a column
7, BR label (1)
The br tag is a newline label that can be written in many places.
8. UL label
9. DL Label
10. OL label
This article from "Doublelinux" blog, declined reprint!
HTML Learning Summary