請注意頁面head區域的編碼是不是規范_XHTML教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!
      我們這里所說的head區域,是指頁頁html代碼的<head>和</head>之間的內容。在Mb5u.com的文章中,主要介紹了大量的css知識,而對html頁面的知識介紹并不是很多。

      今天我們簡單的介紹一下head區域主要放置了內容。這里就不強調css和javascript了,這兩者是大家所熟知的。

      head區一般必須加入的標識有:

      公司版權注釋
      <!--- the site is designed by MrJin 03/2001 --->

      網頁顯示字符集
      簡體中文:
      <meta http-equiv="content-type" content="text/html; charset=gb2312">
      繁體中文:
      <meta http-equiv="content-type" content="text/html; charset=big5">
      英 語:
      <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
      或者:
      <meta http-equiv="content-type" content="text/html; charset=utf-8">

      原始制作者信息
      <meta name="author" content="Mb5u@Mb5u.com">

      網站簡介
      <meta name="description" content="這里填您網站的簡介">

      搜索關鍵字
      <meta name="keywords" content="關鍵字1,關鍵字2,關鍵字3,...">

      網頁的css規范
      <link href="style/style.css" rel="stylesheet" type="text/css">

      網頁標題
      <title>這里是你的網頁標題</title>

      head區可選加入的標識有:

      設定網頁的到期時間。一旦網頁過期,必須到服務器上重新調閱。
      <meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">

      禁止瀏覽器從本地機的緩存中調閱頁面內容。
      <meta http-equiv="pragma" content="no-cache">

      用來防止別人在框架里調用你的頁面。
      <meta http-equiv="window-target" content="_top">

      自動跳轉(5指時間停留5秒)。
      <meta http-equiv="refresh" content="5;url=www.wf0088.com">

      網頁搜索機器人向導.用來告訴搜索機器人哪些頁面需要索引,哪些頁面不需要索引。
      <meta name="robots" content="none">
      content的參數有all,none,index,noindex,follow,nofollow。默認是all。

      收藏夾圖標
      <link rel = "shortcut icon" href="favicon.ico">

      如果您還有什么知識需要補充,歡迎在Mb5u.com發表評論。

      來源:52CSS//所屬分類:XHTML教程/更新時間:2012-06-11
      相關XHTML教程