Thursday 7 April 2011

*HTML TAGS

  All HTML pages are contained within the <html>and </html> tags. This tells the browser that the pages    have been formatted in HTML.


Syntax
    <html>


  •   
  •  
      contents of web page
  •      
  •  
    </html>

1. HEAD tag
The Head tag is a container tag which encloses the HEAD section of the HTML page. This section contains the introduction to the contents of the page.

Syntax
   <head>.......   </head> 

2. TITLE tag
Within the Head section we find the TITLE tag. This is a container tag which contains the document title. The title specified inside the TITLE tag appears in the browser's title bar. The TITLE tag can use only plain text. It does not accept any additional formatting.

Syntax
    <title>.......... </title>

Example
      
      <html>                                                                                                                                                            
                <head>                                                                                                                                          
            <title> HACKING AND CYBER CRIME </title>                                                                              
                 </head>                                                                                                                                         
             </html>                                                                                                                                                  

          

                                  Other then the contents enclosed within the TITLE tag all other contents of the HEAD section are not displayed in the browser.


3. BODY tag
The BODY tag appears just after the HEAD tag. It is a container tag which enclose all the text and image that make up the page. All the elements and formatting constraints of the web page are specified within the BODY of the HTML page.

Syntax
       <body>
            contents of web page
        </body>

Example

      <html>                                                                                                                                                                          
             <head>                                                                                                                                                      
                  <title> HACKING AND CYBER CRIME </title>                                                                            
              </head>                                                                                                                                             
               <body>                                                                                                                                            
           Hacking is authorized or unauthorized use of computer and network resources. hacking is the act of gaining access without legal authorization to a computer or computer network.                                                 
               </body>                                                                                                                                         
      </html>                                                                                                                                                          



View in Internet Explorer

                                                            HTML page in Notepad




Know More HTML Tags

No comments:

Post a Comment