HTML commonly used tags (emphasis)
Title tag
<h1>-<h6>
A title occupies one line, the title text from <h1> to <h6> becomes thinner and font size becomes smaller.
Paragraph tag
<p> I am a paragraph </p>
line break tag
<br />
text formatting tag
- Bold < strong >< /strong> or <b >< /b>
- Italic <em >< /em> or <i >< /i>
- Underscore <ins >< /ins> or <u >< /u>
- Strikethrough <del >< /del> or <s >< /s>
<div> and <span> tags (block tags)
- The <div ></div> tag is used for layout, only one <div ></div> can be placed in a row
- The <span >< /span> tag is used for layout, and one line can put multiple <sapn >< /span>
Image tag <img>
relative path and absolute path
hyperlink tag
Attributes | effect |
---|---|
href | Used to specify the address of the link target , (required attribute) when the tag uses the href attribute, it has the function of a hyperlink |
target | Used to specify the opening method of the linked page, where _self is the default value (open in the current page), _blank is to open in a new window |
链接的分类
Comment label
special character
table label
<table> 是表格标签,<tr>是行,<th>和<td>是表格中的元素
- basic structure
- Header cell label
- Table related attributes (understand)
不能只看,一定要动手敲一遍
List label
- The unordered list <ul> tag
is displayed as follows in the browser:
- The ordered list <ol> tag
is displayed as follows in the browser:
Form tag <form>
-
Text box
-
Single box
-
Checkbox
-
Time (year. month. day)
-
Submit documents
-
Submit button
-
Password field
Before
entering the password: After entering the password:
-
choose the color
-
Normal button
-
-
Text field
-
Drop-down checkbox