THE <body> TAG
<!DOCTYPE html><html>
<head>
<title>This is the Title. It will be explained later on</title>
</head>
<body>
...your page...
</body>
</html>
You might notice here that the tags are nested. That is, both <body> and </body> tags go inside the <html> tags; the same with both <head> tags. All HTML tags work this way,
forming individual nested sections of text. You should be careful never to overlap tags. That is, never do something like the following:
<!DOCTYPE html><html>
<head>
<body>
</head>
</body>
</html>
Whenever you close an HTML tag, make sure that you're closing the most recent unclosed tag. (You'll learn more about closing tags as you go on.)
NOTE
In HTML, closing some tags is optional. In fact, in HTML 4.0 and earlier, closing tags were forbidden in some cases. The XHTML standard requires your markup to be well-formed XML, which leads to the requirement that all tags be closed. Because the examples shown in this book use HTML5, closing tags will be used only when they are required, but if you are working with XHTML you must close them.
THE TITLE TAG
Each HTML page needs a title to indicate what the pages describes. it appears in the title bar of the browser when people view the webpage. The title is stored in your browser's bookmarks and in search engines when they index your webpages.Use the <title> tag to give a page a title.
<title> tsgs are placed within the <head> tag and are normally used to describe the content of the page, as follows :
<!DOCTYPE html><html>
<head>
<title>The Lion The Witch, and the Wardrobe</title>
</head>
<body>
your page....
</body>
</html>
Each page can only have one title, and that site can contain only plain text; that is, no other tags should appear inside the title.
Try to choose the title that's both short and descriptive of the content. Your title should be relevent even out of the context. If someone browsing on the web follows a random link and end up on this page, or if a person finds your title in a friend's browser history list, would he have any idea what this page about ? You might not intend to use the page independently of the pages you specifically linked to it, but because anyone can link to any page at any time, be prepared fot the consequences and pic ka helpful title.
NOTE:
When seach engines indexes your pages, each page title is captured and listed in the search results. The more descriptive your page title, the more likely it is that someone will choose your page from all the results.
Also, because browsers put the title in the title bar of the window, you might have a limited amount of space. (Although the text within the <title> tag can be of any length, it might be cut off by the browser when it's displayed.) Here are some examples of good titles:
<title>Poisonous Plants of North America</title> <title>Image Editing: A Tutorial</title> <title>Upcoming Cemetery Tours, Summer 1999</title> <title>Installing the Software: Opening the CD Case</title> <title>Laura Lemay's Awesome Home Page</title>
Here are some not-so-good titles:
<title>Part Two</title>
<title>An Example</title>
<title>Nigel Franklin Hobbes</title>
<title>Minutes of the Second Meeting of the Fourth Conference of the Committee for the Preservation of English Roses, Day Four, After Lunch</title>
Stay connected for more updates...