HTML5學習筆記(一)——HTML標記及常用標記

雙標記:<開始標記>content</結束標記>

單標記:<標記/>

標記的屬性:<開始標記 屬性1=參數1 屬性2=參數2 …>content</結束標記>

//標記與屬性、屬性之間以空格分隔

//屬性無順序、且不是必須的

html5中,所有標記必須小寫。

一、meta標記用於定義文件信息,對網頁文件進行說明,便於搜索引擎查找,位於<head></head>之間。

<meta name=“keywords” content="value"> 多個關鍵字內容可以用“,”分隔;

設置描述:<meta name=“description” content="value"> ;

設置作者:<meta name=“author” content="value"> ;

設置字符集:<meta http-equiv=“content-type” content="text/html";charset="gb2312"> ;

設置頁面定時跳轉:<meta http-equiv=“refresh” content="2";URL="http://blog.csdn.net/u014711210"/> ;

二、主體標籤

<html>//包括了整個HTML頁面代碼

    <head>//html頭部,包括title,meta等,不會顯示在主頁面

        <title>

        </title>

    </head>

    <body>//html的主體,展示給用戶看的部分

    </body>

</html>



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章