HTML TUTORIAL

        

                                   HTML

 HTML :- HTML stand for Hypertext Markup Language, and it is used in write a web pages, and used to format web pages with the help of different tags available in HTML language.

Basic HTML Document 
                         Live Demo
         
<!DOCTYPE hlml>
<html>

<head>
<title>This is document title</title>
</head>

<body>
<h1>This is a heading</h1>
<p>Document content goes here.......</p>
</body>
 
</html>
 
 
HTML Tags 
        Examples of HTML document uses the following tags----------------
  • <!DOCTYPE>
         It is defined the documents type and html version
  • <html>
           This tag encloses the complete html documents
  • <head>
         This tag represents the documents header which can keep other html tag like <title>,<link> etc
  • <title>
         The <title> tag is used inside the <head> tag to mention the document title
  • <body>
         This tag represents the documents body which keeps other html tags like <h1>, <div>, <p> etc
  • <h1>
           This tag represents the heading
  • <p>
           This tag represents a pagaraph          


HTML Document Stracture
                          It has following structures.............

<html>

     <head>
         Document header related tags
        </head>

      <body>
          Documnets body related tags
          </body>

       </html>


HTML - Basic Tags
             Any documents starts with a heading.You can use different sizes for your heading.HTML also has six levels of headings,which use the elements.....
   <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.While displaying any heading,browser adds one line before and one line after that heading.

Examlpe:-
       <!DOCTYPE html>
          <html>
 
                <head>
                     <title>Heading Examle</title>
                 </head>
 
          <body>
              <h1>This is heading 1</h1>
              <h2>This is heading 1</h2>
              <h3>This is heading 1</h3>
              <h4>This is heading 1</h4>
              <h5>This is heading 1</h5>
              <h6>This is heading 1</h6>
          </body>
 
      </html>
        

Pagaraph Tag
         Each paragraph of text should go in between an opening <p> and a closing </p> tag as shown below in the example.........

Example:- 
      












                       
 

                   


Comments

Popular Posts