Head

Change Font Size:

HTML head of information (Head)

HTML head of information (head) contains the host website information. Information head (head), the content is mainly being used by the browser, the web site does not reveal the contents of the text in.

Also, search engines such as google, yahoo, baidu, will find your website information in the head. To allow the search engine included your website, you have to fill in the appropriate head of information. (Web site included in the search engine, there are other methods, such as the links to other websites, there is no repeat, please visit the Web site search engine.)

Below that several commonly used information in the head of html elements, such as title (title), links (link), style (style), as well as on information (meta).

Title (title)

Title (title) is the most common head information. It does not appear in the text HTML pages, displayed in the browser window title bar. Chart:

Information head (head) of the title (title)

Sample code is as follows:

  <head> <title> HTML Chinese head Directory Information (head) of title (title) Description </ title> </ head> 

Links (link)

With links (link) can be established and external documents. CSS is commonly used Waibuyangshibiao (external style sheet) links. Sample code is as follows:

  <link Rel="stylesheet" href="mainstyles.css" type="text/css" /> 
.

Style (style)

Use patterns (style) can be located within the pages of style sheets (internal style sheet). Sample code is as follows:

 <head> 
 <style> 
  Body (background-color: white; color: black;) 
  H1 (font: 18pt arial bold;) 
  </ Style> 
  </ Head> 

Information on the website (meta)

In computer language, you can often see a prefix - meta, meta is the "on" (about) the meaning.

This meta explain relatively mouthful, such as metadata, which means the data describing data, English is data about data. There is a word called metalanguage that a description of the language of other languages. As another example, metafile, and other documents that describe the documents.

In HTML, meta tags (meta tags) that used to describe Web pages relevant information. Sample code is as follows:

  <meta Name="description" content="HTML Tutorial head information" /> 
  <meta Name="keywords" content="HTML,tutorials,source codes" /> 
  <meta Name="author" content="NT22.com network tutorial" /> 

Refresh in the use of meta You can also automatically Jump Pages function. Sample code:

  <meta Http-equiv="Refresh" content="5;url=http://www.nt22.com/html_tutorials/index.html" /> 

Demonstration examples