Html web page head area specification knowledge

between the head area refers to the content of the home page HTML code <head> and </ head>. 

  Must be added to the label 

  1. The company's copyright note
  <! --- at The Site IS the Designed bywebjx.com 06/2006 ---> 

  2. page shows the character set 
  Simplified Chinese: <META HTTP-EQUIV = " Content-Type" CONTENT = "text / html; charset = gb2312  ">
  Traditional Chinese: <META HTTP-EQUIV = " Content-Type" CONTENT = "text / html; charset = BIG5">
  English: <META HTTP-EQUIV = " Content-Type" CONTENT = "text / HTML; charset = ISO-8859-1"> 

  3. page creator information 
  <the META name = "author" Content = "Evance"> 

  4. site Profile 
  <META nAME = "DESCRIPTION" CONTENT = "xxxxxxxxxxxxxxxxxxxxxxxxxx"

  The search key 
  <META NAME = "keywords" CONTENT  = "xxxx, xxxx, xxx, xxxxx, xxxx,

   


  
  <title>xxxxxxxxxxxxxxxxxx</title> 

Create a front-end learning qun438905713, most in the group are zero-based learners, we help each other, answer each other, and also to prepare a lot of learning materials, welcomed the zero-based junior partner to the exchange.

  You can choose to join the tag 

  1. The page set expiration time. Once the page expired, we must re-access to the server.
  <META HTTP-EQUIV = "the Expires" CONTENT = "Wed, 26 Feb 2006 08:21:57 GMT"> 

  2. prohibit browser access to the page content from the cache of the local machine. 
  <META HTTP-EQUIV = "Pragma" CONTENT = "NO-Cache"> 

  3. to prevent someone calls your page in the framework. 
  <The META the HTTP-EQUIV = "the Window-target" the CONTENT = "_ Top"> 

  4. automatically jump.
  <META HTTP-EQUIV = "Refresh " CONTENT = "5; URL = http: //www.webjx.com">, 5 refers to the residence time of 5 seconds. 

  5. Web Search robot guidance. Used to tell search robots which pages to index, which does not require an index page.
  <The META NAME = "a robots" the CONTENT = "none"> 
  the CONTENT parameters are all, none, index, noindex,  follow, nofollow. The default is all.

  6. Favorites icon 
  <link rel = "Shortcut Icon" href = "favicon.ico">

  All calls javascript try to take the external call. 
  <SCRIPT LANGUAGE = "javascript" SRC = "Script / xxxxx.js"> </ SCRIPT> 

  attached <body> tag:
  <body> tag does not belong to the head area, to emphasize here, in order to ensure browser compatibility, you must set the page background <body bgcolor = "# FFFFFF" >

Published 90 original articles · won praise 40 · Views 100,000 +

Guess you like

Origin blog.csdn.net/webxuexi168/article/details/104433764