HTML page Head Area code Writing specification _ Basic Tutorial

Source: Internet
Author: User
Tags character set
Today we briefly introduce the head area to place the main content. There is no emphasis on CSS and JavaScript, both of which are well known.


The head area must usually be added with the logo:


Corporate Copyright Notes
<!---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= "52css@jb51.net" >

Website Introduction
<meta name= "description" content= "Here's a brief introduction to your website" >

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 your page title </title>

The head area can optionally be added with the logo:

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

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

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

Automatic jump (5 refers to the time to stay 5 seconds).
<meta http-equiv= "Refresh" content= "5;url=www.jb51.net" >

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

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

If you have any further knowledge to add, please comment at jb51.net.

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.