• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Making a Web Page with HTML > The head tag and what goes in it

The head tag and what goes in it

The head of the HTML document is where information called meta data (information about the document) is contained. Tags associated with meta data are meta tags. The purpose of meta tags and the information they contain is to

  • Inform the browser about what type of document it is receiving.

    <meta http‐equiv="Content‐Type” content="text/html; charset=ISO‐8859‐1” />

  • Give information to the search engines.

    <meta name="Keywords" content="Claudia Snell, Web Designer, massachusetts " />
    <meta name="Description” content="Claudia Snell is a new media designer based in Worcester, MA.” />
    
    					  

  • Provide a title for the page. This page title is displayed in the title area of the browser and also in most search engine results lists.

    <title>Claudia Snell:: New Media Designer</title>

  • Link associated files like CSS and JavaScript files.

    <link rel="stylesheet" href="css/sitestyle.css" type="text/css" />
    <script language="JavaScript” type="text/javascript” src="functions.js"></script>
    
    					  

  • Provide information about when the page was published and by whom.

    <meta name="copyright" content="2000 ‐ 2005, claudia snell" />
    <meta name="publisher" content="claudia snell" />
    <meta name="author" content="claudia snell" />

Note that all the samples of code in the preceding list are closed either with a closing tag or with a / at the end of the code. A good way to tell if a tag is a container tag is to determine whether it “contains” anything. The <head> tags encapsulate all the header information, so they are container tags. The meta tags merely convey a piece of information and so are not containers.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint