HTML page Header code full contact

Source: Internet
Author: User
Tags character set html page microsoft frontpage

For beginners who are just beginning to learn HTML, it is necessary to understand the header code of the Web page.

All of the following code is between

1.<title>...</title>

Title element to help users better identify files, with and only one. Do the file name when you are a home page or collection.

2.<link>...</link>

Displays the relationship between this document and other documents: <link rel= "stylesheet" href= "s.css" > Connection to an external style sheet.

Rel describes the relationship between the HTML file and the URL two document, and href describes the document name.

3.<style>...</style>

You can include style pages in your document. The internal style of the document itself.

4.<base>...</base>

To define an absolute path URL for a relative path, the reader will know where to download your document.

URL format: Communication protocol://Host name/path/filename

5.<script>...</script>

Used to include scripts (commands written in a series of scripting languages) can be JavaScript or VbScript.

6.<meta>...</meta>

Meta is a response header message that is used to simulate an HTTP protocol in an HTML document.

Common features of META tags:

1. Help the homepage by each big search engine login;

2. Define the use language of the page;

3. Automatically refresh and point to the new page;

4. Realize the animation effect when the webpage transforms;

5. Web page grading evaluation;

6. Control page buffering;

7. Control the window displayed by the Web page.

There are two types of meta properties: Name and Http-equiv.

The Name property is mainly used to describe the Web page, corresponding to content (Web page contents), so that search engine robot to find, classification (at present, almost all search engines use online robots to automatically find meta values to classify the page). The most important of these is description (the site's description on the search engine) and keywords (category keywords), so you should add a meta value to each page.

Name property

1.<meta name= "generator" contect= "EditPlus" > Description of the build tools (such as Microsoft FrontPage 4.0);

2.<meta name= "KEYWords" contect= "Webjx,cnrose" > to the search engine to explain the keywords of your web page;

3.<meta name= "Description" contect= "Webjx ' s Blog" > tells the search engine the main content of your site;

4.<meta name= "Author" contect= "WEBJX" > tells the search engine to make the author of your site;

5.<meta name= "Robots" contect= "All|none|index|noindex|follow|nofollow" >

Name property:

Set to all: The file will be retrieved and the link on the page can be queried;

Set to None: The file will not be retrieved and the link on the page cannot be queried;

Set to index: file will be retrieved;

Set to follow: the link on the page can be queried;

Set to NOINDEX: The file will not be retrieved, but the link on the page can be queried;

Set to Nofollow: The file will not be retrieved and the link on the page can be queried.

HTTP-EQUIV Properties:

1.<meta http-equiv= "Content-type" contect= "text/html"; charset=gb_2312-80 "> and <meta http-equiv=" Content-language "contect=" ZH-CN "> is used to explain the text and language that the home page is made of, as well as the iso-8859-1 character set, as well as BIG5, Utf-8, Shift-jis, Euc, Koi8-2 and other character sets;

2.<meta http-equiv= "Refresh" content= "N; Url=http://yourlink "> To make the page in the specified time n seconds, jump to the page http;//yourlink;

3.<meta http-equiv= "Expires" contect= "mon,12 May 2001 00:20:00 GMT" > can be used to set the expiration time of the Web page, and once it expires, it must be called back on the server. It is important to note that the GMT time format must be used;

4.<meta http-equiv= "PRagma" contect= "No-cache" > is used to set the browser from the local computer cache to access the content of the page, once set off the page can not be removed from the cache;

5.<meta http-equiv= "Set-cookie" contect= "mon,12 may 00:20:00 GMT" >cookie set, if the page expires, the saved cookie will be deleted. Attention must also be paid to the use of GMT time format;

6.<meta http-equiv= "Pics-label" contect= "> Web rating, there is a content setting in Internet Options for IE to prevent browsing of restricted sites, And the limit level of the website is set by the meta attribute;

7.<meta http-equiv= "Windows-target" contect= "_top" > Force page is displayed in the current window as a standalone page, which prevents the page from being called by others as a frame page;

8.<meta http-equiv= "Page-enter" contect= "Revealtrans (duration=10,transtion=)" > and <meta http-equiv= " Page-exit "contect=" Revealtrans (duration=20,transtion=6) > sets the special effects of entering and leaving the page, which is "format/page Transitions" in FrontPage. However, the added page can not be a frame page.

The duration value is the time, in seconds, for the dynamic transition of the Web page.

The transition is a transitional method with a value of 0 to 23, corresponding to 24 transition modes respectively. As shown in the following table:

      0: box-shaped contraction; 1: box-shaped radiation; 2: circular contraction; 3: circular radiation; 4: from Lower to upper; 5: From left to right; 6: from right to left; 7: Vertical blinds; 8: Horizontal Blinds ; 10: horizontal Lattice Blinds; 11: Vertical Lattice Blinds; 12: Dissolve at will; 13: Expand from left to right, 14: Expand from middle to left and right, 15: Expand from top to bottom, 16: Expand from Middle to bottom, 17: Expand from upper right corner to bottom left ; 18: From the lower right corner expands to the upper left corner, 19: From the upper left corner expands to the right corner, 20: from the lower left corner to the right corner, 21: Horizontal line expansion, 22: Vertical line expansion; 23: Randomly producing a transition mode.

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.