One week of HTML5 learning 2. One week of html5 Learning
Hyperlink a1 and herf: The network address of the hyperlink. You can write the relative path of the local file or the relative path of the local html file by using the src path of img. 2. target: set the hyperlink to open the window position, _ slef its own web page open (default) _ blank new page open 3, title: The mouse on the pop-up [functional link] mailto: // 1838660364@qq.comtencent: // massage /? Uin = 2831705549 [anchor link] 1. Set an anchor link on this page: <a name = "top"> </a> the name attribute indicates that the anchor name is in the href attribute of the hyperlink, use # name to jump to the specified anchor location <a href = "# top"> jump to anchor </a> 2. Set the href attribute of the anchor link to be redirected on other pages.. File name .html # name <a href = "aaaa.html # top"> Note: Due to Google/IE compatibility issues, you need to insert a space in the anchor & nbsp; to take effect, the tag name and attribute name must be in lowercase, for example, <a href = "tencent: // massage /? Uin = 1838660364 "title =" click to bring up "target =" _ self "> link </a> <a name =" img /. png "> & nbsp; </a> <a href =" # img /. png "> <br> <br> <br>> <br> jump to </a> table <table> table row <tr> </tr> table column <td> </td> Header <th> </table> [common table attributes] Border: border attribute of the table. When border = "" is used to set the border, borders are nested on all td and table. When border is increased, only the outer layer of the table is bold. Cellspacing: gap between cells. When the value is 0 The gap is 0, and the single side frame is two. [Border merging] After style = "border-collapse: collapse" is used for merging, you do not need to set cellspacing. Cellpadding: the border inside the cell, the distance between the text and the border WidthHeightAlign: the alignment of the table sets the alignment of the table in the parent container left center right [note] When the table uses the align attribute, it is equivalent to floating the table, which may affect the elements behind the table. Bgcolor: Background Color Background: Background image when the Background image and Background color are both valid, the Background image overwrites the Background color Bordercolor: border color <! -- <Tr> <td> the label attribute Width and Height: sets Bgcolor: Background Color Align for a single row and column: sets the horizontal alignment of the text in cells Valign: vertical text alignment top/center/bottomnowrap: nowrap = "nowrap" sets no line breaks at the end of a cell text line --> <! -- [Cross-row and cross-column of table] 1. Cross-column: colspan, cell across N columns, delete the following N-1 column 2. Cross-row: rowspan, cell across N rows, delete the following N-1 row --> example </table> <table border = "5" width = "400" height = "150" bordercolor = "red" style = "border- collapse: collapse; "> <tr> <td rowspan =" 6 "width =" 100 "height =" 150 "> </td> <td rowspan = "3"> </td> <td rowspan = "2"> </td> </tr> <td> </tr> <td rowspan = "2"> </td> </tr> <td rowspan = "3"> </td> <tr> <td rowspan = "2"> </td> <td> </td> </tr> </table>