Example:
HTML
<html>
<head>
<style>
.myDiv {
border: 5px outset red;
background-color: lightblue;
text-align: center;
}
</style>
</head>
<body>
<div class="myDiv">
<h2>This is a heading in a div element</h2>
<p>This is some text in a div element.</p>
</div>
</body>
</html>
How to create HTML <div> Tag | HTML Tag |
What Type of Browsers will Support for HTML <div> Tag | HTML Tag |
How to set Default CSS Settings for HTML <div> Tag | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |