Html notes (nine) head tag

The head Tags: <head>

The head tags are placed on the <head> </head> divided between head. Include: title base meta link

<title> : Specify the browser title bar displays the contents of the.

<base> :

href The specified attribute: hyperlink directory all webpage. Can be a local directory, can also be a network directory, attention must use \ said directory value at the end of the. Hyperlink file only to a relative path.

target The specified attribute: open the way of hyperlink. As _blank said all hyperlinks are open in new window display.

<meta> :

name Properties: description information webpage. When the keywords, the contents of the content property as search engine keyword search.

http-equiv Properties: response header simulation of HTTP protocol.

<link> :

rel Objective: to describe the relationship between the document and the attributes of the current document.

type Properties: document type.

media Properties: the target document plays a role in what kind of equipment


1 <head> 2 3 <title>My webpage</title> 4 5 <base href="d:\code\myhtml\" /><!--The root directory of links--> 6 7 <meta http-equiv="keywords" content="Shawn" /><!--Webpage keywordShawn--> 8 <meta http-equiv="refresh" content="3" /><!--3Second refresh time--> 9 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 10 11 <link rel="stylesheet" href="1.css" media="print,screen" /> 12 <!- associated with a CSS style file --> 13 14 </head> 15 16 <body> 17 <a href="pic.jpg">PIC</a> 18 </body>

Posted by Jill at November 22, 2013 - 3:19 PM