Div tag in HTML

 The <div> tag is used for defining a section of your document.
You can group large sections of HTML elements together and format them with CSS.


<!DOCTYPE html>
<html>
<body>

<div style ="background-color:red;color:white;padding:20px;">

<h1> Two Tutorials</h1><br>
<h2><b> I am Sahil Bhatia from Jammu. I am app maker. any person Create own application at low price Please contact me. My mobile no is 08803459360. please try my new website for C, C++ tutorial <a href="http://www.javatpoint.info">Javatpoint.info</a>
and for Java Tutorial <a href = "http://www.sahilapps.com"> Java Tutorial</a></b><h2>

</div>
<body>
</html>
OUTPUT
 

Two Tutorials


I am Sahil Bhatia from Jammu. I am app maker. any person Create own application at low price Please contact me. My mobile no is 08803459360. please try my new website for C, C++ tutorial Javatpoint.info and for Java Tutorial Java Tutorial

No comments:

Post a Comment