-- Detailed explanation of HTML tags
Detailed explanation of HTML instructions
Structure
<html>
<head>
<title>Title<title>
</head>
<body>......File content. .........
</body>
</html>
1. File title
<title>.....</title>
2. File update--< meta>
【1】Automatically update once after 10 seconds
<meta http-equiv="refresh" content=10>
【2】Automatically link to another file after 10 seconds
<meta http-equiv="refresh" content ="10; URL=URL of the file to be linked">
3. Query form--<isindex>
If you want to set the prompt text before the query field:
<isindex PRompt="Prompt text">
4. Default base path--<base>
<base href="URL of the host where the file is placed">
Layout
1. Title text <h#>............</h#> #=1~6; h1 is the largest font, h6 is the smallest font
2. Font changes <font>......................</font>
【1】Font size <font size=#>. .........</font> #=1~7; The larger the number, the larger the font
【2】Specify the font <font face="font name">..... ..</font>
【3】Text color <font color=#rrggbb>............</font> rr: stands for red (red) color code gg: stands for green (green) color Code bb: blue color code
3. Display small fonts <small>.....</small>
4. Display large fonts <big>..... ...</big>
5. Bold font <b>.....</b>
6. Italic font <i>..........</ i>
7. Typewriter font <tt>............</tt>
8. Bottom line <u>.....</u>
9. Strikethrough <strike>..........</strike>
10. Subscript <sub>..........</sub>
11. Superscript <sup>. .......</sup>
12. Text blinking effect <blink>..........</blink>
13. Line break <br>
14. Segmentation <p >
15. The alignment direction of text <p align="#"> Number # can be left: table aligned to the left (default value) center: table aligned to the center right: table aligned to the right P.S.<p align="# The text after "" will be displayed in the set alignment until another
appears to change its alignment direction, or when the
Pictures
1. Insert picture <img src="graphic file name">
2. Set frame -- border <img src="graphic file name" border=points >
3. Set graphic size -- widthⅱheight <img src="Graphic file name" width=width points height=height points>
4. Set the top, bottom, left and right spaces of the graphic - vspaceⅱhspace Number of empty points>
5. Graphic notes <img src="Graphic file name" alt="Explanation text">
6. Preload pictures
<img src="High-resolution graphic file name" lowsrc="Low-resolution graphic File name"> P.S. It is best to have the same size of the two pictures
7. Image Map <area shape=shape coords=area coordinate list href="URL of connection point">
<area shape=shape coords=area coordinate list href="URL of connection point">
<area shape=shape coords =area coordinate list href="URL of connection point">
<area shape=shape coords=area coordinate list href="URL of connection point"> </map>
【1】Define shape -- shape
shape =rect: rectangle shape=circle: circle shape=poly: polygon
[2] Define the area -- coords
a. Rectangle: Four numbers must be used, the first two numbers are the coordinates of the upper left corner, and the last two numbers are Coordinates of the lower right corner
Example: <area shape=rect coords=100,50,200,75 href="URL">
b. Circle: Three numbers must be used, the first two numbers are the coordinates of the center of the circle, and the last number is the radius length
Example: <area shape=circle coords=85,155,30 href="URL">
c. Any shape (polygon): fill in the coordinates of each turning point of the shape in order
Example: <area shape= poly coords=232,70,285,70,300,90,250,90,200,78 href="URL">
Table
1. Define table <table>..........</table>
【1】Settings The thickness of the border -- border
<table border=points>
【2】Set the width of the grid -- cellspacing
<table cellspacing=points>
【3】Set the distance between the data and the grid -- cellpadding
< table cellpadding=points>
【4】Adjust table width -- width
<table width=points or percentage>
【5】Adjust table height -- height
<table height=points or percentage>
【6】Set table Background color -- bgcolor
<table bgcolor=#rrggbb>
【7】Set table border color -- bordercolor
<table bordercolor=#rrggbb>
2. Display grid lines <table border>
3. Table title
< caption>........................</caption>
Table title position -- align
<caption align="#"> Number # can be top: the table title is placed above the table (default value)
bottom: The table title is placed below the table
4. Define columns <tr>
5. Define fields «1» <td>: Align to the left
«2» <th>: Align to the center ⅱ Bold
【1】 Horizontal position -- align <th align="#">
# number can be left: align to the left
center: align to the center right: align to the right
【2】Vertical position -- align <th align="#" > The # number can be
top: align upwards middle: align to the middle
bottom: align downwards
【3】Field width -- width
<th width=points or percentages >
【4】Fields are merged vertically -- rowspan
<th rowspan=Number of columns to be merged>
【5】Horizontal merging of columns -- colspan
<th colspan=Number of columns to be merged>
List
1. Directory list
<dir><li>Item 1 <li>Item 2 <li>Item 3 </dir> P.S. Each item in the directory list cannot exceed 20 characters (i.e. 10 Chinese characters)
2. Option list <menu> <li>Item 1 < li>Item 2 <li>Item 3 </menu>
3. List with serial numbers <ol> <li>Item 1 <li>Item 2 <li>Item 3 </ol>
【1】Serial number format -- type <ol type=#> or <li type=#> The # number can be A: The uppercase English letters AⅱBⅱCⅱD... are used as the project number. a: The lowercase English letters aⅱbⅱcⅱd... are used. .As the project number I: The table uses uppercase Roman numerals as the project number i: The table uses lowercase Roman numerals as the project number 1: The table uses Arabic numerals as the project number (default value)
[2] Starting number - - start <ol start=The ordinal number to start counting>
【3】Specify the number -- value <li value=The ordinal number to be specified>
4. List without serial number <ul> <li>Item 1 <li>Item 2 <li>Item 3 </ul>
【1】Bullet mark form -- type <ul type=#>or <li type=#> The # number can be disc: solid dot (default value) circle: hollow circle Point square: solid square
【2】Original list -- plain <ul plain>
【3】List arrangement -- warp «1»The list is arranged vertically <ul warp = vert> «2»The list is arranged horizontally <ul warp = horiz>
5. Definition List <dl> <dt>Item 1 <dd>Item 1 Description <dt>Item 2 <dd>Item 2 Description <dt>Item 3 <dd>Item 3 Description </dl>
Close Arrangement -- compact