Web Front-end Study Notes 3, Web Study Notes 3
1. meta tag.
1.1 <meta charset = "UTF-8">
Charset: Character Set
1.2 <meta name = "keywords" content = ""> role: SEO improves rankings for websites.
1.3 <meta name = "description" content = ""> Purpose: To optimize websites and improve SEO rankings. The description of the website.
1.4 <meta http-equiv = "refresh" content = "5; url =" https://www.baidu.com "> webpage redirection
2. link tag.
2.1 <link rel = "icon" href = "image. ico"> place a small icon in the webpage title.
2.2 <link rel = "stylesheet" href = "1.css"> introduce external style sheets. (Both meta and link tags are written in the head tag .)
3. table <table> </table>
Purpose: display data.
Composition: table: Define table tr: Row td: column (cell)
Property: border: set table border width: set table width height: set table height cellspacing: Set the cell table distance (2 by default) cellpadding: Set the distance between text and cell border
Bgcolor: Set the background color align = "center" (In td or tr, set the text to center table and set the text to center table)
<Th> </th>: Set the table title.
<Caption> </caption>: used to set the table header.
4. Table structure.
<table> <thead></thead> <tbody><tbody> <tfoot></tfoot></table>
5. Merge cells.