HTML page header SEO optimization

Preface

In many cases, when we make the homepage, we will ignore the settings of the page header attributes. Html page header file attribute refers to the <head>region of action identifier, the HTML file comprises a header information of the current file number for collecting information on <head>the properties of the modified region, this does not directly affect the visual file effect. But by setting it up, it will make our homepage production process more standardized and more convenient to use.


First, the name attribute is explained in detail:

Mainly used to describe webpages, corresponding to content(webpage content), to facilitate search engine robots to find and classify. Among them description(the description of the site on the search engine) and keywords(category keywords) are the most important.

 <!--seo关键词-->
    <meta
      name="Keywords"
      content="bealei,个人网站,个人网页,个人站点,个人博客,个人主页"
    />
    <!--seo一段描述-->
    <meta
      name="Description"
      content="bealei的个人网站主页。我是一个自学者,爱旅游、摄影和编程。网址www.bealei.com "
    />
    <!--网站作者-->
    <meta name="author" content="bealei" />
    <!--网站版权-->
    <meta name="copyright" content="bealei" />

1. Parameters: Keywords

Description: A list of keywords provided for search engines

<meta name="Keywords" content="bealei,个人网站,个人网页,个人站点,个人博客,个人主页">

Tip: Use English commas " ," to separate each keyword . If you are using Chinese punctuation, keywords will not work. <meta>The usual use of is to specify keywords used by search engines to improve search quality. When several <meta>elements provide document language dependent information, search engines will use the lang feature to filter and prioritize the user’s language.

2. Parameters: Description (Introduction)

Description: Description is used to tell search engines the main content of your website.

<meta name="Description" content="bealei的个人网站主页,网址www.bealei.com ">  

3. Parameters: Robots (Robot Wizard)

Description: Robots is used to tell search robots which pages need to be indexed and which pages do not need to be indexed. Content of the parameters all, none, index, noindex, follow, nofollow. The default is all.

<META NAME="Robots" CONTENT="All">

Tip: Many search engines use robot/spider searches to log in to the site. These robots/spiders will use some features of meta elements to determine how to log in.
all: The file will be retrieved, and the link on the page can be queried;: the
nonefile will not be retrieved, and the link on the page cannot be queried; (same effect as "noindex, no follow")
index: the file will be retrieved; (Let the robot/spider log in)
follow: The link on the page can be queried;: The
noindexfile will not be retrieved, but the link on the page can be queried; (Do not let the robot/spider log in)
nofollow: The file will not be retrieved, and the link on the page The link can be queried. (Do not let the robot/spider follow the links on this page to look down)


4. Parameters: Author (author)

Description: Annotate the author or production team of the page

<meta name="Author" Content="bealei,www.bealei.com">

Tip: Content can be: the name of you or your production team, or Email

<meta name="Author" Content="bealei,[email protected]">

5. Parameters: Copyright (copyright)

Description: Mark the copyright

<meta name="Copyright" Content="本页版权归bealei所有。All Rights Reserved">

6. Parameters: Generator (Editor)

Description: description of the editor

<meta name="Generator" Content="VScode">

Tip: Content="The editor you use"

7. Parameters: Language

Description: Description of the language of the page

<meta name="Language" Content="zh-CN">

8. Parameters: Designer

Description: Description of the web designer

<meta name="Designer" Content="bealei">

Tip: Generally speaking, the publisher is personal information

9. Parameters: Publisher (publisher)

Description: Description of the website publisher

<meta name="Publisher" Content="bealei">

Tip: Generally speaking, the publisher is to publish company information

10. Parameters: Title (theme)

Description: website theme description

<META NAME="Title" CONTENT="bealei个人博客">

Tip: Usually the value here is the content title of the web page

11. Parameters: Subject (the subject of the content)

Explanation: Mainly refers to what is the subject of this article and what is the core content.

<META NAME="Subject" CONTENT="个人主页|个人博客">

12. Parameters: Abstract (Abstract)

Description: page description

<META NAME="Abstract" CONTENT="本网站为学习点滴记录网站">

Tip: A brief description of the page content, which is often found in the content page, can strengthen the search engine's preservation of the page content and facilitate user search.

13. Parameters: Expires (period)

Description: page page deadline

<META NAME="Expires" CONTENT="time">

Tip: It must be the GMT standard time, and the expiration time is defined. After the time expires, it cannot be dropped from the cache.

<META NAME="Expires" CONTENT="Wed, 11 Feb 2010 00:51:09 EST">

14. Parameters: Distribution (distribution target)

Explanation: META NAME is valid on those pages

<META NAME="Distribution" CONTENT="Global">

Tip: It refers to the regions in which the website appears, generally set to Global, which means the global scope.

15. Parameters: Revise-After (revisit time)

Note: In general large websites, spider crawling frequency is quite frequent, resulting in heavy server pressure. Therefore, this restriction is to allow spiders to revisit within a limited date. For example, 7 days is to visit once every seven days.

<META NAME="Revisit-After" CONTENT="N Days">

Tip: It refers to the regions in which the website appears, generally set to Global, which means the global scope.


Second, detailed explanation of http-equiv attributes:

1. It is used to describe the text and language used in the production of the homepage. For example, English is the ISO-8859-1 character set, as well as BIG5, utf-8, shift-Jis, Euc, Koi8-2 and other character sets;

<meta http-equiv="Content-Type" content="text/html" charset="gb_2312-80">
<meta http-equiv="Content-Language" content="zh-CN">

2. Regularly let the web page jump to the page http://www.bealei.com within the specified time of 77 seconds;

<meta http-equiv="Refresh" content="77;url=http://www.bealei.com">

3. It can be used to set the expiration time of the webpage, once it expires, it must be called again on the server. It should be noted that the GMT time format must be used;

<meta http-equiv="Expires" content="Dec,12 May 2020 12:12:12 GMT">

4. It is used to set to prohibit the browser from reading the page content from the local machine's cache. Once set, it cannot be retrieved from the Cache once you leave the web page;

<meta http-equiv="Pragma" content="no-cache">

5. Cookie setting. If the webpage expires, the saved cookie will be deleted. It should be noted that the GMT time format must also be used;

<meta http-equiv="set-cookie" content="Dec,12 May 2020 12:12:12 GMT">

6. Webpage rating, there is a content setting in the Internet option of IE, which can prevent browsing some restricted websites, and the restriction level of the website is set through the meta attribute;

<meta http-equiv="Pics-label" content="">

7. Force the page to be displayed as a separate page in the current window, which can prevent your own web page from being called by others as a frame page;

<meta http-equiv="windows-Target" content="_top">

8. Set the special effects when entering and leaving the page. This function is the "format/page transition" in FrontPage, but the added page cannot be a frame page.

<meta http-equiv="Page-Enter" content="revealTrans(duration=10,transtion=50)">
<meta http-equiv="Page-Exit" contect="revealTrans(duration=20,transtion=6)">

Guess you like

Origin blog.csdn.net/bealei/article/details/115266861