head內常用標簽
阿新 • • 發佈:2018-05-24
tle name charset 外部 code 網易 頁面 javascrip gbk
一 head內常用標簽
1、meta相關
#1、指定字符集 <meta charset="gbk"> #2、頁面描述 <meta name="Description" content="具體描述。。。"> #3、關鍵字:有助於搜索引擎SEC優化,再怎麽優化也抵不過競價排名 <meta name="Keywords" content="網易,郵箱,遊戲,新聞"> #4、3秒後跳轉 <meta http-equiv="refresh" content="3,http://www.baidu.com"> #5、三秒刷新 <meta http-equiv="refresh" content="3">
2、非meta標簽(重點)
#1、標題 <title>百度一下,你就知道</title> #2、網站的圖標 <link rel="icon" href="https://www.baidu.com/favicon.ico"> #3、定義內部樣式 <style></style> #4、引入外部樣式文件 <link rel="stylesheet" href="mystyle.css"> #5、定義JavaScript代碼或引入JavaScript文件 <script src="hello.js"></script>
head內常用標簽