Code writing specification for the head area of HTML pages

Source: Internet
Author: User

Today we briefly introduce the head area where the main content is placed. There is no emphasis on CSS and JavaScript, both of which are well known.


The head area must include the following logos:


Company Copyright note
<!---the site is designed by Mrjin 03/2001--->

Web page display Character set
Chinese Simplified:
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
Chinese Traditional:
<meta http-equiv= "Content-type" content= "text/html; Charset=big5 ">
English
<meta http-equiv= "Content-type" content= "text/html; Charset=iso-8859-1 ">
Or:
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">

Original creator Information
<meta name= "Author" content= "[email protected]" >

About the website
<meta name= "description" content= "Here to fill in your website profile" >

Search keywords
<meta name= "keywords" content= "keyword 1, keyword 2, keyword 3,..." >

CSS specification for Web pages
<link href= "Style/style.css" rel= "stylesheet" type= "Text/css" >

Page title
<title> here is the title of your page </title>

The head area is optionally included in the logo:

Sets the expiration time of the page. Once the page expires, it must be re-accessed on the server.
<meta http-equiv= "Expires" content= "Wed, 1997 08:21:57 GMT" >

Prevents the browser from accessing the contents of the page from the local machine's cache.
<meta http-equiv= "Pragma" content= "No-cache" >

Used to prevent others from calling your page in the frame.
<meta http-equiv= "Window-target" content= "_top" >

Auto Jump (5 means time to stay for 5 seconds).
<meta http-equiv= "Refresh" content= "5;url=www.jb51.net" >

Web Search Robot Wizard. Used to tell the search robot which pages need to be indexed, and which pages do not need to be indexed.
<meta name= "Robots" content= "None" >
The content parameters are all,none,index,noindex,follow,nofollow. The default is all.

Favorites Icon
<link rel = "shortcut icon" href= "Favicon.ico" >

Http://www.jb51.net/article/15404.htm

Code writing specification for the head area of HTML pages

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.