The head element refers to the element located between the
tag pair, which mainly includes:
Content displayed on the title bar
Used to specify the base address of all hyperlinks in the web page to change the base address of all URLs that use relative addresses in the web page.
Attribute name | Zuo Yong |
---|---|
href | Set the base address of the relative URL address of all HTTP protocols in the web page. If the web page has the following code: Lesson01_03 , it will open when clicked at this time Http://www.loncer.cn/JStudy/Lesson01_03.html |
target | Used to set the target window displayed by all hyperlinks in the web page, so that you can omit the need to add the target attribute to all hyperlinks |
Defines the relationship between the current document and another document or resource
effect | |
---|---|
defines the URL address of another resource, required | |
Defines the relationship type between the two resources linked by . You must choose one of the two | |
Describes the relationship between links, or it can be a string describing the target resource, which is optional | |
Give the mime type of the target resource, for example: | HTML is: "text/html" CSS is: "text/css" JavaScript is: "text/javascript" # ## |
Used to specify the medium or media to receive the target data. The output will only work on the specified one. | screen: On the computer screen (default)
|
The effect when loading a web page | |
The effect displayed when leaving the web page | |
name | content |
Keywords | Tell the robot or spider released by the search engine to add the content filled in the content attribute to the search engine as the keywords of the web page. Multiple keywords in the content attribute can be separated by commas, for example: |
Description | Add the content in content to the search engine as a content description of this webpage. If not, display the first few lines of the webpage under the link to the page in the search results list. | # ##
Tell the search engine how the robots released can be based on the settings in content, which can be the following values |
|
is used to describe the tools used to edit this web page, and the content is the tool name | |
is used to describe the author of the web page, and the content is the author | |
is used for copyright statement, and content is copyright statement |
Attribute name | effect |
---|---|
Content-Type | Describe the MIME type of the web page content and the character set encoding used for the text content, for example: | # ##
Specify to automatically refresh the web page after a certain period of time, for example: | refreshes the web page once per second You can also add a URL after the time , jump to this webpage within the specified time, for example: Note: Separate the URL and time with commas |
Specify the expiration time of the web page in the browser. If the time of the computer where the browser is located exceeds the time specified in content, you must re-download it from the server when accessing. Note: the > setting in the content attribute GMT time format must be used, for example: | Note: Set content to 0, You can disable the browser from using cached pages |
Force the page to be displayed in a certain window. For example, use the following code to prevent your web page from being used as a frame page by others calling | ## # |
Used to prevent the browser from caching this web page on the local computer, as follows: |