The head area we are talking about here refers to the content between the <head> and </head> of the page html code. In the article on 52css.com, a large amount of CSS knowledge is mainly introduced, but not a lot of knowledge about html pages is introduced.
Today we briefly introduce the main content placed in the head area. I won't emphasize css and javascript here, both of which are well known.
The head area generally has to be added:Company Copyright Notes
<!---thesiteisdesignedbyMrJin03/2001--->
Web page display character set
Simplified Chinese:
<metahttp-equiv=content-typecontent=text/html;charset=gb2312>
Traditional Chinese:
<metahttp-equiv=content-typecontent=text/html;charset=big5>
English:
<metahttp-equiv=content-typecontent=text/html;charset=iso-8859-1>
or:
<metahttp-equiv=content-typecontent=text/html;charset=utf-8>
Original maker information
Website introduction
<metaname=descriptioncontent=Fill in the introduction to your website here>
Search for keywords
<metaname=keywordscontent=Keyword1,Keyword2,Keyword3,...>
Web page css specification
<linkhref=style/style.cssrel=stylesheettype=text/css>
Web page title
<title>This is your web page title</title>
The optional signs to join in the head area are:Set the expiration time of the web page. Once the web page expires, it must be re-read on the server.
<metahttp-equiv=expirescontent=wed,26feb199708:21:57gmt>
Prohibits browsers from viewing page content from the local machine's cache.
<metahttp-equiv=pragmacontent=no-cache>
Used to prevent others from calling your page in the framework.
<metahttp-equiv=window-targetcontent=_top>
Automatically jump (5 means time stays for 5 seconds).
<metahttp-equiv=refreshcontent=5;url=www.52css.com>
Web Search Robot Wizard. It is used to tell the search robot which pages need indexes and which pages do not need indexes.
<metaname=robotscontent=none>
The parameters of content are all, none, index, noindex, follow, nofollow. The default is all.
Favorites icon
<linkrel=shortcuticonhref=favicon.ico>