This is an online Meta tag generator tool that can customize Meta tags according to user needs.
Below are some examples and explanations of the <meta> tag.
META tags are divided into two main parts: HTTP header information (HTTP-EQUIV) and page description information (NAME).
★HTTP-EQUIV
HTTP-EQUIV is similar to the HTTP header protocol, providing the browser with useful information to help display web page content correctly and accurately. Common types of HTTP-EQUIV include:
1. Content-Type and Content-Language (Character set settings)
Description: Set the character set used by the page to indicate the text and language used in the homepage production. The browser will call the corresponding character set to display the page content.
Usage: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-CN">
Note: This META tag defines the character set used by the HTML page as GB2132, which is the national standard Chinese code. If you replace "charset=GB2312" with "BIG5", the character set used by the page will be the traditional Chinese Big5 code. When you browse some foreign websites, the IE browser will prompt you to download the xx language support to display the page correctly. This function is obtained by reading the Content-Type attribute of the HTML page META tag to know which character set to use to display the page. If the system does not have the corresponding character set, IE will prompt to download. Other languages also correspond to different charsets, such as "iso-2023-jp" for Japanese and "ks_c_5601" for Korean.
Content of Content-Type can also be: text/xml and other document types;
Charset options: ISO-8859-1 (English), BIG5, UTF-8, SHIFT-Jis, Euc, Koi8-2, us-ascii, x-mac-roman, iso-8859-2, x-mac-ce, iso-2023-jp, x-sjis, x-euc-jp, euc-kr, iso-2023-kr, gb2312, gb_2312-80, x-euc-tw, x-cns11643-1, x-cns11643-2 and other character sets; Content of Content-Language can also be: EN, FR and other language codes.
2. Refresh (refresh)
Description: Let the web page refresh itself after a certain period (seconds), or automatically link to another web page after a certain period.
Usage: <meta http-equiv="Refresh" content="30">
<meta http-equiv="Refresh" content="5; url=http://www.example.com">
Note: The 5 here means that it will automatically refresh to the URL address after staying for 5 seconds.
3. Expires (expiration)
Description: Specify the expiration time of the web page in the cache. Once the web page expires, it must be retrieved from the server again.
Usage: <meta http-equiv="Expires" content="">
<meta http-equiv="Expires" content="Wed, 26 Feb 1997 8:21:57 GMT">
Note: The GMT time format must be used, or it can be set directly to (the number indicates how long after expiration).
4. Pragma (cache mode)
Description: Prohibit the browser from retrieving page content from the local machine's cache.
Usage: <meta http-equiv="Pragma" content="No-cache">
Note: The web page is not saved in the cache, and the page is refreshed every time it is accessed. This setting prevents visitors from browsing offline.
5. Set-Cookie (cookie setting)
Description: When the browser visits a page, it will store it in the cache, and it can be read from the cache the next time it is visited to improve speed. When you want visitors to refresh your ad icons or counters every time, you need to disable caching. Usually, there is no need to disable caching for HTML files. For pages like ASP, you can use caching to be disabled because the pages seen each time are dynamically generated on the server, and caching loses its meaning. If the web page expires, the stored cookie will be deleted.
Usage: <meta http-equiv="Set-Cookie" content="cookievalue=xxx; expires=Wednesday, 21-Oct-98 16:14:21 GMT; path=/">
Note: The GMT time format must be used.
6. Window-target (display window setting)
Description: Force the page to be displayed in the current window as ** page.
Usage: <meta http-equiv="Window-target" content="_top">
Note: This attribute is used to prevent others from calling your page in a frame. Content options: _blank, _top, _self, _parent.
7. Pics-label (web page RSAC rating)
Description: In the Internet options of IE, there is a content setting that can prevent browsing some restricted websites, and the restriction level of the website is set through this parameter.
Usage: <META http-equiv="Pics-label" contect="(PICS-1.1'http://www.example.com'I gen comment 'RSACi North America Sever' by 'inet@microsoft.com' for 'http://www.example.com' on '1997.6.30T14:21-500' r(n s v l))">
Note: Do not set the level too high. The RSAC rating system provides a standard for evaluating the content of web sites. Users can set Microsoft Internet Explorer (IE3. and above) to exclude sites containing ** and violent content. The HTML in this example comes from the Microsoft homepage. The code (n s v l ) indicates that the site does not contain unhealthy content. The level is rated by RSAC, that is, the ** Entertainment Committee's rating agency. If you want to further understand the content of the RSAC rating system, or if you need to evaluate your own website, you can visit the RSAC site: http://www.example.com
8. Page-Enter, Page-Exit (entry and exit)
Description: These are some special effects when the page is loaded and called out.
Usage: <meta http-equiv="Page-Enter" content="blendTrans(Duration=.5)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=.5)">
Note: blendTrans is a dynamic filter that produces a fade-out effect. Another dynamic filter, RevealTrans, can also be used for page entry and exit effects:
<meta http-equiv="Page-Enter" content="revealTrans(duration=x, transition=y)">
<meta http-equiv="Page-Exit" content="revealTrans(duration=x, transition=y)">
Duration indicates the duration of the filter effect (unit: seconds)
Transition filter type. Indicates which special effect to use, with values ranging from -23.
Rectangle shrink 1 Rectangle expand 2 Circle shrink
3 Circle expand 4 Bottom to top refresh 5 Top to bottom refresh
6 Left to right refresh 7 Right to left refresh 8 Vertical blinds
9 Horizontal blinds 10 Staggered horizontal blinds 11 Staggered vertical blinds
12 Point diffusion 13 Left and right to the middle refresh 14 Middle to left and right refresh
15 Middle to top and bottom 16 Top and bottom to the middle 17 Right bottom to left top
18 Right top to left bottom 19 Left top to right bottom 20 Left bottom to right top
21 Horizontal strip 22 Vertical strip 23 Random selection of the above 22 types
9. MSThemeCompatible (XP theme)
Description: Whether to turn off the xp theme in IE
Usage: <meta http-equiv="MSThemeCompatible" content="Yes">
Note: Turn off the blue three-dimensional button system display style of xp, which is very similar to win2k.
10. IE6 (page generator)
Description: The page generator, generator, is ie6
Usage: <meta http-equiv="IE6" content="Generator">
Note: What it is made with, similar to the manufacturer of the product.
11. Content-Script-Type (script related)
Description: This is a recent W3C specification, indicating the type of script in the page.
Usage: <meta http-equiv="Content-Script-Type" content="text/javascript">
Note:
★NAME variable
name is a description of the web page, corresponding to Content (web page content), to facilitate search engine robots to search and categorize (currently almost all search engines use online robots to automatically find meta values to classify web pages).
The value of name (name="") specifies the type of information provided. Some values are already defined. For example, description (description), keyword (keyword), refresh (refresh), etc. You can also specify other arbitrary values, such as creationdate (creation date),
document ID (document number) and level (level), etc.
The content of name specifies the actual content. For example, if the level (level) is specified as the value (value), the Content may be beginner (primary), intermediate (intermediate), advanced (advanced), etc.
1. Keywords (keywords)
Description: A list of keywords provided for search engines
Usage: <meta name="Keywords" content="Keyword1, Keyword2, Keyword3, Keyword4, ...">
Note: Each keyword is separated by an English comma “,”. The usual use of META is to specify the keywords used by search engines to improve the quality of the search. When several META elements provide document language information, search engines will use the lang attribute to filter and display search results according to the user's language preference. For example:
<meta name="Keywords" lang="EN" content="vacation, greece, sunshine">
<meta name="Keywords" lang="FR" content="vacances, grè:ce, soleil">
2. Description (introduction)
Description: Description is used to tell search engines the main content of your website.
Usage: <meta name="Description" content="A brief description of your web page">
Note:
3. Robots (robot guide)
Description: Robots are used to tell search robots which pages need to be indexed and which pages do not need to be indexed. The parameters of Content include all, none, index, noindex, follow, nofollow. The default is all.
Usage: <meta name="Robots" content="All|None|Index|Noindex|Follow|Nofollow">
Note: Many search engines log in to websites by releasing robots/spiders, and these robots/spiders use some attributes of the meta element to decide how to log in.
all: The file will be retrieved, and the links on the page can be queried;
none: The file will not be retrieved, and the links on the page cannot be queried; (Has the same effect as "noindex, no follow")
index: The file will be retrieved; (Let the robot/spider log in)
follow: The links on the page can be queried;
noindex: The file will not be retrieved, but the links on the page can be queried; (Do not let the robot/spider log in)
nofollow: The file will not be retrieved, and the links on the page can be queried. (Do not let the robot/spider follow the connections on this page to explore further)
4. Author (author)
Description: Mark the author or production group of the web page
Usage: <meta name="Author" content="Zhang San, abc@sina.com">
Note: Content can be: Your name or your production group, or Email
5. Copyright (copyright)
Description: Mark the copyright
Usage: <meta name="Copyright" content="All rights reserved by haokucn.com">
Note:
6. Generator (editor)
Description: Description of the editor
Usage: <meta name="Generator" content="PCDATA|FrontPage|">
Note: Content="The editor you used"
7. revisit-after (revisit)
Description:
Usage: <META name="revisit-after" CONTENT="7 days">
Note:
★Other usages in the Head
1. scheme (Plan)
Explanation: Scheme can be used when the name is used to specify how the value of content should be interpreted.
Usage: <meta scheme="ISBN" name="identifier" content="0-14-043205-1" />
Note:
2. Link (Link)
Explanation: Link to a file
Usage: <Link href="soim.ico" rel="Shortcut Icon">
Note: Many websites, if you save her in the favorites, will find that she comes with a small icon. If you enter again, you will also find a small icon in the address bar. Now, as long as you add this sentence in the header of your page, you can easily achieve this function. The is used to link the current file with other URLs, but there will be no link button, used between