Many times, when we make home pages, we ignore the settings of the web header properties. The header attribute of the web page refers to the area in the Html file that is acted upon by the <Head> identifier. The header information of the Html file includes the collection of some information about the current file. After modifying the attributes of the <Head> area, it will not directly affect the visual effect of the file. However, by setting it up, our homepage production process will be more standardized and more convenient to use.
Now let's take a look at how to set some home page header properties:
1.META identifier
META identifier is a home page header element to record some important information on the current page, such as the character set, author, version, web page keyword, etc. of the web page.
For example:
<head>
................
<meta http-equiv=″Content-Type″ content=″text/html; charset=gb2312″>
<meta name=″Computer Software and Hardware Application Network” content=″Computer Software and Hardware Application Network Studio Production”>
<meta name=″version″ content=″third revision″>
<meta name=″Content″ content=″Software download, use, homepage production, make money, navigation...″>
................
</head>
The content of name indicates that the META identifier contains description information about the current page, and http-equiv is represented as HTTP header information (HTTP-EQUIV).
2. Insert keyword attributes
Many popular search engine robots on the Internet today can read keyword attributes in META identifiers and index them in their database based on the information provided. When a browser enters relevant keyword search on the search website, your web address will be included. But some search engines will limit the number of keywords you have, and extra keywords will be ignored.
For example:
<meta name=″keywords″ content=″Computer Software and Hardware Application Network Studio, https://www.VeVb.com”>
<meta name=″keywords″ content=″Software download, software use, homepage production, navigation”>
where keywords are keywords and content content is the attribute of the keyword.
3. Insert the web page to describe the propertiesLike the nature of Keywords, web page introductions provide search engine robots with a rough introduction to the current web page, and some search engines will limit the number of words in your profile.
For example:
<meta name=″description″ content=″Computer Software and Hardware Application Network (https://www.VeVb.com)-Computer Software and Hardware Application Network Studio, Xiaoniu">
4. Insert the web page refresh properties For example:<meta http-equiv=″refresh″ content=″5;URL=https://www.VeVb.com″>
The meaning of this code is: after 5 seconds of the web page, the current page will automatically jump to https://www.VeVb.com. The 5 in the content means that the interval is 5 seconds, and it can also be changed to other times such as 3 and 4, which are customized by the web page author; the URL is followed by the address of the other page you want to jump to.
<meta http-equiv=″refresh″ content=″3″>
The meaning of this code is: after 3 seconds the current page will automatically refresh. The interval between 3 in the content is 3 seconds, and it can also be changed to 4, 5 and other times, which is also customized by the web author.
5. Insert the web page base link attributesIf all links in one page use relative path links, and you want to change them to the same absolute path link on the Internet, you can do so by setting the properties of the web page's base link.
For example:
<base href=″https://www.VeVb.com/″ target=″_blank″>
As mentioned above, all relative paths on your web page will be preceded by https://www.VeVb.com/ when linked. where target=″_blank″ is the link file that opens in a new window, you can make other settings. Change _blank to _parent is the link file will be opened in the parent window of the current window; change to _self link file will be opened in the current window (frame); change to _top link file to be displayed in full screen.
The above are some tips for setting the attributes of web pages, and I hope it will be helpful to the majority of netizens who make homepages. The author Xiao Niu hopes that everyone can make our online home (personal homepage) more beautiful by exchanging experience and experience in homepage production!