Saturday 26 February 2022

HTML document for DIV Tag

 DIV TAG

Code :

<!doctype html>

<html>

    <head>

       <title>pre Tag</title>

    </head>

    <body>

    <h1>div Tag in HTML</h1>

    <p>

      The HTML &#60div&#62 tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS.<br><br>

      The difference between the div tag and the span tag is that the div tag is used with block-level elements while the span tag is used wth inline elements.

    </p>

    <div>

    <p><b>Example : </b></p>

     <p>Welcome to our blog. We provide tutorials on various subjects.</p>

    </div>

    </body>

</html>

WEB VIEW :


Come again Learn again !

< iCodeBuzz />


No comments:

Post a Comment