Tips for setting page header properties

Source: Internet
Author: User
Tags character set header insert relative version window
Tips | Web page

Most of the time, when we do the homepage, we ignore the setting of the page header properties. The page header attribute refers to the area that is head> by the identifier in the HTML file, the header information of the HTML file includes the collection of some information about the current file, and the properties of the area are modified without directly affecting the visual effect of the file. But by setting it up, it will make our homepage production process more standardized, more convenient to use.

Now let's take a look at how to set the header properties of some home pages:
  
1.META identifier

A meta identifier is a page header element that records important information about the current page, such as the character set of the page, the author, the version, the page keyword, and so on.
For example:

..............




..............

Where the content of "name" means that the META identifier contains descriptive information about the current page, and "Http-equiv" is represented as HTTP header information (HTTP-EQUIV).
  
2. Insert Keyword Properties

Nowadays, many popular search engine robots can read the keyword attributes in Meta Identifiers and index them in their databases based on the information provided. When a visitor enters a keyword search on a search site, your web address is included. But some search engines will limit the number of keywords you have, and the extra keywords will be ignored.
For example:


where "keywords" is the keyword, "content" is the property of the keyword.

3. Insert Web page Brief properties

As with the nature of the keyword (Keywords), the Introduction to the Web page is to provide a general introduction of the current Web page to search engine robots, as well as some search engines to limit the number of words in your profile.
Example:

4. Insert Page Refresh Property

For example:

This code means: the page after 5 seconds, the current page automatically jump to "http://www.webjx.com." The "5" in "Content" indicates an interval of 5 seconds, or it can be changed to "3", "4", and other times, by the author of the Web page, and then the address of the other page that you want to jump to after the URL.


This paragraph of code means: the page after 3 seconds, the current page automatically refreshed. "Content" in the "3" indicates the interval is 3 seconds, can also be changed to "4", "5" and other time, also by the Web page author custom.

5. Insert Page Base link Properties

If all the links in one of your pages use a relative path link, and you want to change it to the same absolute path link on the Web, you can do so by setting the page base link properties.
For example:

As above, all the relative paths on your page will be preceded by a "http://tinyniu.yeah.net/" in the link. where "Target=″_blank″" is a linked file opens in a new window, you can do other settings. Change "_blank" to "_parent" is the link file opens in the parent window of the current window, the _self link file opens in the current window (frame), and the "_top" link file is displayed in full screen.



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.