A simple HTML essential element
The header used to define the document, which is the container for all head elements. The head describes the various properties and information of the document, and most of the head data is not displayed directly to the reader.
The following tabs are available in the head section: Base,link,meta,script,style,title
The head tag supports global properties in HTML
1. Base Global Properties
All browsers support, specify the default address or target for all links on the page, and after setting the base URL, the browser will use the base address URL to populate
All the relative URLs, including the tags have a, link, img, form
Note:,<base> tags do not have an end tag in HTML, and,<base> tags must be closed correctly in XHTML.
HREF: The base URL for all relative links in the specified page
Target: Where to open all the links in the page
_blank: A new quilt
_parent
_self: The current quilt
_top
2. Meta: Global Properties
Provides meta information about the page (Meta_info), which must be in the head, whose data is always passed in pairs in the form of a name = value.
Must attribute:
Content
Defines the meta information associated with HTTP-EQUIV and name, whose value can be any valid string
Always use with HTTP-EQUIV and name
Optional properties:
1. http-equiv Content_Type associating the content attribute to the HTTP header
Expires
Refresh
Set_cookie
Provides an assignable name for the name/value pair to be sent to the Web page, which instructs the server to place the corresponding name/value pair after the MIME header of the document when the server sends the document to the browser
Sent to the browser again. Although many name/value pairs are sent when a document is sent to the browser, content-type:text/html is a mandatory item for each server that tells the browser to be ready to accept
An HTML document.
When using the META tag of the Http-equiv property, the server sends a name/value pair to the browser's head.
For example, the message sent to the browser header should be:
Content-type:text/html
Refresh:5
Expires:31 DEC 2008
2. Name author to associate the content attribute to a name
Description
Keywords
Generator
Revised
Others
You can set a name that makes sense to yourself and to the source document reader, and keywords is a frequently used name that defines a set of keywords for a document that the search engine uses to classify the document.
If you do not set the Name property, the HTTP-EQUIV name/value pair will be used for the paper drop.
3. Title: Global Properties
The browser will use the title in a special way, and when the document is added to a linked list or collection, the title of the document will be the default name for that link.
<title> tag is the only thing in the
The following standard properties are supported:
Dir Text direction of content in RTL elements
Lrt
The language code of the content in the lang language_code element
Xml:lang language_code Language code for content element content in XHTML documents
4. Link: Global Properties
Tags define the relationship of documents to external resources.
The most common use of tags is to link style sheets
HREF: Specifies the location of the linked document.
Hreflang: Specifies the language of the text in the linked document
Rel: Specifies the relationship between the current document and the linked document
Alternate
Author
Help
Icon
Licence
Next
Pingback
Prefetch
Prev
Search
Sidebar
Stylesheet
Tag
Size: Specifies the dimensions of the resource being linked. Applies to rel= "icon" only.
The head icon style is as follows:
The Head,base,meta,title of HTML