HTML5 概述及基本語法
https://cloud.tencent.com/developer/article/1560281
前端開發每天必學之HTML入門介紹
https://cloud.tencent.com/developer/article/1650375
網站基本結構
https://cloud.tencent.com/developer/article/1526092
網頁設計技術之HTML的基本結構說明
-
標簽中的屬性
<head> :
<title> :標題標簽,其內容顯示在瀏覽器的頂部
<meta> :網頁的編碼(注意用什么編碼,文件就要用相應的編碼保存)
現在:<meta charset="utf-8"/>也可以填GB2312或GBK
以前:<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
為文檔提供一些附加信息,可被瀏覽器、搜索引擎或網頁制作工具使用的信息。如文檔作者、網頁有效期、關鍵字列表等
設置格式 <meta name="參數" content="參數值"/> 或 <meta http-equiv="參數" content="參數值"/>
例:<meta name="keywords" content="binary trees, linked lists, stacks"/> //設置關鍵字
<meta name="Anthor" content="carson"/>//設置作者
<meta name="Generator" content="FrontPage"/> //設置網頁生成工具
*http-equiv和name只能二取一
*http-equiv主要是向瀏覽器傳遞一些信息
*name則向搜索引擎和制作工具提供信息
例:<meta http-equiv="Expires" content="Tue,08 Dec 2009 00:00:00GMT"/> //設置網頁過期時間
<meta http-equiv="refresh" content="5;url=http://www.zhku.edu.cn"/> //告訴瀏覽器5秒后網頁刷新到zhku網站
<body> :