html 編寫模板

 

<!doctype html> 
<html>
        <head> 
            <!--聲明當前頁面的編碼集:charset=gbk,gb2312(中文編碼),utf-8國際編碼--> 
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <!--當前頁面的三要素--> <title>html模板</title> <meta name="Keywords" content="關鍵詞,關鍵詞">
             <meta name="description" content=""> 
              <!--css,js--> 
             <style type="text/css">
              *{margin:0;padding:0;} 
            </style>
      </head>
<body> 

</body>

<script type="text/javascript">

</script>
</html>

關鍵字:

doctype : 當前文檔類型(html) 位於文檔中的最前面的位置,處於 <html> 標籤之前

html(Hyper text Markup Language):兼容所有瀏覽器(html5,css3),是一種標記語言,

      (markup language)(由一套標記標籤 (markup tag)組成)html 使用標記標籤來描述網頁。

http-equiv:指明內容類型

charset:     編碼集(gbk,gb2312中文編碼,utf-8國際編碼)

css:           層疊樣式表

 

 

標籤:

<head></head>描述瀏覽器所需信息(可以放入css及js)

<title></title>   網頁標題(搜索信息)

<meta>              單標籤本身沒有意義,取決於其中的屬性

 

<body></body>包含所要說明的具體內容

<div></div>       層,盒子,容器

<style></style>  用於定義樣式信息(*代表全局所有)

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