HTML meta tag
HTML meta tag can be used to provide information about web page content to browsers or search engines. For example, description of web page content, important keywords of web pages, web page encoding, etc. are commonly used meta tags to mark web page information. In addition, there are also web pages Less important information such as the author, web page publication time, and editor used can also be marked through META TAG. The function of META is only used to indicate these web page information and provide it to browsers or search engines. It is not written for "people" who browse the web.
HTML meta tag written in head example
The standard tag has no end. Just write the parameters directly in the . There can be many different tags in a web page, and they must all be written in the head tag. The title tag in the example is used to indicate the title of the web page. It can be written before the tag or after the tag.
1. Display and arrangement of Chinese
Description:
Content-Type==>File content format
>;==>Everything to be done in CONTENT " ", separated by semicolons
text/html= =>Pure text/hypertext
charset==>The character set is Chinese Traditional Big Five, if iso-2022-jp is used, it refers to Japanese
2. Make it easy for search engines to find you
Note: Keywords in the web page can be used in both Chinese and English
3. Description of website content
Description: Description==>Main description of the content
4. Who is the author of this webpage
Instructions: Mark the name of the author of this webpage and other information
5. This is a web page completed using He editor
Instructions:
Mark the name of the author of this webpage and other information
Generator==>Editor
Mozilla/3.0Gold(Win95)[Netscape]==>Editor and other version notes
6. When will this webpage be completed?
Description:
Creation-Date==>Creation date
01-jan-2003 20:40:01==>Detailed date and time
7. The validity period of this webpage is not restricted by Cache
Copy content to clipboard
<
<
META
HTTP-EQUIV
<
META
http-equiv
Description:
http-equiv="Page-Enter is to enter this page, Page-Exit is to leave this page, Site-Enter is to enter this site, Site-Exit is to leave this site".
content="revealTrans (specify the page change effect), blendTrans (set the page change effect to "mixed").
Duration=Set the duration of the special effect (seconds), it is recommended to be between 3-5 seconds .
Transition=Replace special effects with 0-23 (omitted).
Note:
The http-equiv or NAME attribute must be used in conjunction with the content attribute, and the two can also be used interchangeably.
The usage of META description tag varies according to the settings of each search engine.
The presence or absence of the Meta tag does not affect the normal display of the web page. Its biggest purpose is to provide various information on the web page and produce special effects.
When using the web page, it is recommended to mainly use the tags mentioned in 1.2.3.4.8 on this page, and the rest can be added or deleted according to the situation.
You can use the view source code to see the actual arrangement of this example.
For more reporting materials, please visit the lecturer (author) website.