English 中文(简体)
HTML - Header
  • 时间:2024-09-17

HTML - Header


Previous Page Next Page  

We have learnt that a typical HTML document will have following structure −

Document declaration tag 
<html>
   
   <head>
      Document header related tags
   </head>

   <body>
      Document body related tags
   </body>
   
</html>

This chapter will give a pttle more detail about header part which is represented by HTML <head> tag. The <head> tag is a container of various important tags pke <title>, <meta>, <pnk>, <base>, <style>, <script>, and <noscript> tags.

The HTML <title> Tag

The HTML <title> tag is used for specifying the title of the HTML document. Following is an example to give a title to an HTML document −

<!DOCTYPE html>
<html>

   <head>
      <title>HTML Title Tag Example</title>
   </head>

   <body>
      <p>Hello, World!</p>
   </body>

</html>

This will produce the following result −