Friday 8 April 2011

*Some More HTML Tags

Heading Tag
The Heading tag is a container tag used to specify the heading in web pages. A HTML document can have six different levels or sizes of heading - h1 to h6. A bigger suffix gives you a bigger sized heading.


Syntax
     <hn>   heading text   </hn>
    where n is the size of the text.


Example
                  
                <h1> What is Hacking ? </h1>
      <h2> What is Hacking ? </h>
       <h3> What is Hacking ? </h3> 
      <h4> What is Hacking ? </4>
       <h5> What is Hacking ? </h5> 
       <h6> What is Hacking ? </h6>
                        




                       Heading Tag                                  





Paragraph Tag <p>
The Paragraph tag is a container tag used to create paragraph in HTML document. It creates a line of space between two paragraphs.

Syntax

           <p>...............</p>


Example


                      <body>
                               <p>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. etc.</p><p>There are five types of hackers.</p> 
                      </body


paragraph tag - Notepad

paragraph tag - Internet Explorer 


Line Break <br>
The Line break tag is an empty tag used to insert a line break. When we want to display the text in the next line, we insert a line break.

Syntax
         
         <body>
              text <br>
              text <br>
         </body>


Example

                   White Hat <br>

                   Black Hat <br>

                   Grey Hats <br>

                                               Script Kiddie <br>

                   Hacktivist <br>

                   Cyberterrorists <br>






Line Break Tag - Notepad


Line Break Tag - Internet Explorer



Horizontal Rule <hr>
The horizontal rule tag is an empty tag which is used to draw a horizontal line on the web page.


Syntax
             
                 <hr>

Example




                     <html>
                     <head>
                          <title> HACKING AND CYBER CRIME </title>
                     </head>
                     <body>
                      <h3> What is Hacking </3>
                      <hr>
                      <p>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. </p><p>. There are six types of Hackers.</p>

         White Hat <br>

         Black Hat <br>

         Grey Hats <br>

         Script Kiddie <br>

         Hacktivist <br>

         Cyberterrorists <br>


                    </body>
                 </html>



Horizontal Rule Tag - Notepad




Horizontal Rule Tag - Internet Explorer


Preformatted text <pre>
The preformatted text tag allows ypu to retain the formate of the text entered in the editor.


Syntax
    
        <pre>
             text
       </pre>

Example


         <html>
            <head>
                <tiitle> Example of pre - formated paragraph </title>
            </head>
            <body>
                  <pre>
                               

                             White Hat                          Black Hat

                             Grey Hats                          

Script Kiddie

                             Hacktivist                           Cyberterrorists

                  </pre>
             </body>
          </html>



Preformatted Text - Notepad



Preformatted Text - Internet Explorer

2 comments: