<div> Tag in HTML 5

In this article I am going to explain about div tag in HTML 5.
  • 1336

Definition

The <div> tag in HTML 5 is used to define the section in document.  The <div> tag in HTMl 5 offtenly use css for formatting.

Browser Support by <div> tag

The <div> tag is only supported in Google chrome browser.

Lets take an example of <div> tag

 <html>

<body>

    <div style="color: blue">

        <h3>

            This is Vipendra</h3>

    </div>

    <div style="color: red">

        <h3>

            This is Rahul</h3>

    </div>

</body>

</html>

 

Output


Clipboard22.jpg

Further Readings

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.