shuklsadanhtml1

Friday, 7 July 2017

HTML HEADINGS



Types of html headings:-HTML headings are defined with the <h1> to <h6> tags.
 1) h1 defines the first most important heading .
 2)h6 defines the last headings of the page.

Example:

   <!DOCTYPE html>
   <html>
         <body>
               <h1>This is heading 1</h1>
               <h2>This is heading 2</h2>
              <h3>This is heading 3</h3>
              <h4>This is heading 4</h4>
             <h5>This is heading 5</h5>
             <h6>This is heading 6</h6>
         </body>
   </html>


Html headings program work as it is:

This is heading 1
This is heading 2
This is heading 3
This is heading 4
 This is heading 5
  This is heading 6

HTML TAGS



 TAGS :- Special formatting code called tags.
      HTML tags are element that surrounded by        angle bracket.
    html tags normally come in pair .
    1- open tags  <>
    2- closed tags </>
   The start tag is also called the opening tag.
   The end tag the closing tag.

Most of the tags belonging to the first category.

 1) html tags are not case sensitive.
      Upper case and lower both cases are accept in html code.
     Example:- <HEAD> , <Head> , <head> ----- </HEAD> , </Head> , </head>
      All these type of case are accept in html.

 2) Some tags can have one more named attributes to define some additional characteristics of the tags.  
 <img  src  = “body .jpg”>  (img = image, src source file, .jpg= path of the file).
  <body text = “#FFFFFFbg  color = “#0000FF> (“#FFFFFF = code of color”),(00 = off of the color code ,FF= on of the color code).
   <body text = “whitebg color = “blue>

 3) Un recognized tag:-
                                         Browser normally ignore tags it does not recognize.
  4) Comment lines:- comments are included b/w <!---and--->
       Comment can not be nested.
       <!---a comment here ->
       <!---another comments in two lines--->
 

MARKUP LANGUAGE



  1) Markup language stands to special tag or formatting command in the text.
  2)  describe how the text should be displayed or printed .
  3)  adjust font ,create ,bulleted lists , create forms , images , create tables etc.

Introduction of HTML



  HTML 

 


  1)  HTML stands hyper text markup language.

  2)  HTML define the various component of a web page.

  3)  HTML describes the structure of Web pages using markup.

  4)  HTML elements are represented by tags.

  5) HTML tags label pieces of content, such as:

     -"heading", "paragraph", "table".

    Note: Browsers do not display the HTML tags, but use them to the content of the page.

EXAMPLE:

   <html>
     <head>
           <title>Page Title</title>
      </head>
       <body>
                 <h1>My First Heading</h1>

                      <h1>My First Heading</h1>
                 <p>My first paragraph.</p>

       </body>
</html>

 

  1) <HTML>    Root element of the html

  2) <head>     meta information about document.

  3) <title>       show the browsing title about the    document.

  4) <body>      visible page content.

  5) <h1>         heading of the page.

  6) <p1>          paragraph write about the page