Archive

Posts Tagged ‘How to Use the Head Section’

How to Use the Head Section

March 5th, 2010 Computer Eucation No comments

In the previous chapter, you took a brief look at the <HEAD> section of an HTML document. This section of your HTML document is relatively small, but it conveys some very important information about your document to Web browsers and servers.

Tip Sheet

  • The title tag is used extensively by Web search engines; search engines use the text inside a title tag as a way to determine the actual contents of your page. So make sure your title is descriptive. Don’t type any extra text in between the <HEAD> and </HEAD> tags. In most cases, the only line you’ll insert between those two tags is your document title.
  • Open a new document in Notepad and type <HTML>. To begin the head section, insert an opening tag into your HTML document by typing <HEAD>.
  • The only element required in the head section is the Title of your document. Your title should be short enough to fit
    in the title bar of a typical browser window, but descriptive enough to explain what your HTML document contains.
  • Insert a title tag within the head section by typing <TITLE>, followed by the actual title of your document. In this example, we’ll name this document HTML: Easier Than We Thought. Go ahead and type in that title, then close the tag by typing </TITLE> on the same line.
  • Close the head section by typing </HEAD> on the line below the title line.