-->

HTML headings


-----------------------------------------------------------------------------------------------
<html>
<head>
<title>
heading tags
</title>
</head>
<body>
<h1>first heading</h1><!--first heading-->
<h2>second heading</h2><!--second heading-->
<h3>third heading</h3><!--third heading and son on-->
<h4>forth heading</h4>
<h5>fifth heading</h5>
<h6>sixth heading</h6>
</body>
</html>
 ------------------------------------------------
note:This heading has no attribute. But can be used with CSS.
------------------------------------------------------------------------------------------

HTml to set up the page

<html>
<head><!--for meta tag-->
<title><!-- for title-->
margin set up
</title>
</head>
<body  topmargin="200px" bottommargin="200px">
     <!-- here, topmargin and bottommargin are attributes-->
     <!--similarly, we can also use rightmargin and leftmargin-->
     <!--It sets up the margin/some space on either side like we use in our note copy-->
I am learning web-page.<!-- it gets displayed in browser-->
</body><!--closing -->

</html><!-- closing-->

 

HTML attributes

1. )HTML with attribute: 
                                         we are going to change background color of entire page.
                                                                  
                                        We are going to set up the margin of page
                                                                         

HTML to change the background color of page

<html>
<head><!-- for meta tag-->
<title>
changing background color of page
</title>
</head>
<body bgcolor="#A13265">
         <!--here, bgcolor is an attribute and can have value in RGB or we can give color name-->
         <!--A1=R,32=G,65=B-->
I am learning web-page.
</body>
</html>
-----------------------------------------------------------------------------------------------
or
--------------------------------------------------------------------------
<html>
<head><!-- for meta tag-->
<title>
changing background color of page
</title>
</head>
<body bgcolor="green">
         <!--here, bgcolor is an attribute and can have value in RGB or we can give color name-->
         <!--A1=R,32=G,65=B-->
I am learning web-page.
</body>
</html>

 

Html basic concept

Let's learn HTML from basic/ground level using example.
----------------------------------------------------------------
1) HTML basic structure
                                             understand it

2) HTML basic structure part 2
 
                                            understand it

HTML basic part


<html>          <!--called root tag-->
    <head>      <!--contains meta information of page-->
        <title><!--contains title of page-->
        first page in html
        </title
    </head>
    <body><!--is a container and contains everything-->
    my page in html
    I am learning html.
    </body><!--closing part of body-->
</html><!--closing of html-->

HTML basic concept

<!DOCTYPE html><!--used in html 5-->
<html>          <!--called root tag-->
    <head>      <!--contains meta information of page-->
        <title><!--contains title of page-->
        first page in html
        </title
    </head>
    <body><!--is a container and contains everything-->
    my page in html
    I am learning html.<!--is content to be displayed-->
    </body>
</html>