Full contact with tag attributes in the HTML head

Source: Internet
Author: User
Full contact with tag attributes in the HTML head [14:29:29 | Author: Todd
] Font size: Large
| Medium
| All the following small code is between

1. <title>... </Title>
The title element helps you better identify one file. Name of a file when it is used as a homepage or favorites.

2. <link>... </Link>
Show the relationship between this document and other documents: <Link
Rel = "stylesheet" href?“s.css ">
Connect to the external style sheet.
Rel describes the relationship between HTML files and URLs. href describes the document name.

3. <style>... </Style>
You can include the style page in the document. The internal style of the document.

4. <base>... </Base>
Define an absolute path URL for the relative path. After you download your document, you can also find the URL format: Communication Protocol: // host name/path/file name

5. <SCRIPT>... </SCRIPT>
Commands used to include scripts (commands written in a series of script languages) can be
Javascript or VBScript.

6. <meta>... </Meta>
Common Features of Meta Tags:

1. Help the home page to be logged on by various search engines
2. Define the language of the page
3. Automatically refresh and refer to the new page
4. Implement the animation effect during webpage Conversion

5. webpage Rating Evaluation
6. Control page Buffering
7. Control the webpage display window.

Meta is used to simulate HTTP Response Header packets in HTML documents.
Meta
There are two types of attributes: Name and HTTP-equiv.
The name attribute is mainly used to describe a webpage, corresponding to content (webpage content ), this allows search engines to search for and classify robots. (currently, almost all search engines use online robots to automatically search for Meta values to classify webpages ). The most important of these are description and keywords. Therefore, you should add a meta value to each page.

Name
Attribute
1. <meta name = "generator" contect = "editplus"> describes the generation tools (such as Microsoft
FrontPage 4.0;
2. <meta name = "keywords"
Contect = "cnbruce, cnrose"> describe keywords Of Your webpage to search engines;
3. <meta name = "Description"
Contect = "cnbruce's blog"> tell the search engine the main content of your site;
4. <meta name = "author"
Contect = "cnbruce"> tell the search engine the author of your site;
5. <meta name = "Robots"
Contect = "All | none | index | noindex | follow | nofollow">
The attributes are described as follows:
Set to all: the file will be retrieved, and the link on the page can be queried;
Set to none: files will not be retrieved, and links on the page cannot be queried;
Set to index: the file will be retrieved;
Set to follow: links 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: files will not be retrieved, and links on the page can be queried.

HTTP-equiv attributes
1. <Meta
HTTP-equiv = "Content-Type" contect = "text/html", charset = gb_2312-80 "> and <Meta
HTTP-equiv = "content-language"
Contect = "ZH-CN"> used to describe the text and language used by the homepage production; for example, English is the ISO-8859-1 character set, and big5, UTF-8, shift-JIS, EUC, Koi8-2 Character Set;
2. <Meta
HTTP-equiv = "refresh" content = "N; url = http: // yourlink">
Regularly redirect a webpage to HTTP within the specified time (n seconds); // yourlink;
3. <meta http-equiv = "expires"
Contect = "mon, 12 May 2001 00:20:00
GMT "> it can be used to set the expiration time of a webpage. Once the webpage expires, it must be called again on the server. Note that the GMT time format must be used;
4. <Meta
HTTP-equiv = "Pragma"
Contect = "no-Cache"> it is used to disable the browser from accessing the page content from the cache of the Local Machine. Once set, it cannot be called out from the cache once it leaves the page;
5. <Meta
HTTP-equiv = "Set-cookie" contect = "mon, 12 May 2004 00:20:00
GMT "> cookie setting. If the webpage expires, the cookie on the disk will be deleted. Note that the GMT time format must be used;
6. <Meta
HTTP-equiv = "pics-label"
Contect = ""> webpage rating, which has a content setting in Internet Options of IE, can prevent browsing some restricted websites, the website's restriction level is set through the meta attribute;

7. <meta http-equiv = "Windows-target"
Contect = "_ top"> force the page to be displayed on an independent page in the current window to prevent its webpage from being called as a frame page;
8. <Meta
HTTP-equiv = "Page-Enter" contect = "revealtrans (duration = 10, Transtion =
50) "> and <meta http-equiv =" Page-Exit"
Contect = "revealtrans (duration = 20, Transtion = 6)"> set the special effect for entering and leaving the page. This function is the "format/Webpage transition" in FrontPage ", however, the added page cannot be a frame page.

The duration value is the dynamic transition time of the webpage, in seconds.
Transition is a transitional mode. Its value ranges from 0 to 23, corresponding to 24 transition modes respectively. See the following table:
0
Box contraction 1 box radiation
2 circular contraction 3 circular radiation
4 From bottom up 5 from top down
6 from left to right 7 from right to left
8 vertical blinds 9
Horizontal blinds
10 horizontal blinds 11 vertical blinds
12 dissolve at will 13 expand from left and right ends to the middle
14 expand from the center to the left and right sides
15 expand from the upper and lower ends to the middle
16. expand from the middle to the bottom. 17. expand from the top right to the bottom left.
18 expand from bottom right to top left 19 from top left to bottom right
20
Expand 21 horizontal lines from the lower left to the upper right
22 vertical linear expansion 23 random generation of a transitional 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.