-->

HTML with color

To apply effect to paragraph or text or background, we apply CSS. How? There are many ways.
About all we will discuss later. Till then,
Let's take an example.
------------------------------------------------------------------------------------------


<html>          <!--called root tag-->
    <head>      <!--contains meta information of page-->
        <title><!--contains title of page-->
        html with color(css)
        </title
    </head>
    <body style="background-color:honeydew;">
    <!--body tag with style and value-->
        <!--to style , we use style-->
        <!--first part is property(background-color)
            second part is value(honeydew)
        -->
    <h2 style="color:blueviolet;"> page in html</h2>
    <!--h2 tag with style and value-->
    <!--to style , we use style-->
    <!--first part is property(color)
    second part is value(blueviolet).
    It changes the style of h2 only.
    -->    

    <h1>this is heading</h1>
    <!--it does not have any color effect-->
    
    </body>
</html>

No comments:

Post a Comment