HTML div class tag attribute
HTML <div> tag mean a generic section within an HTML document. The <div> tag allows to group sections of HTML elements together and format them with CSS.
HTML div class tag attribute - how to create - example
<div class="CSS-name-of-class"> your text here, link or images</div> with the generic content " your text here, link or images" inserted between the start and end tags and class attribute is giving form of div tag.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML div class tag attribute</title>
<meta name="description" content="HTML div class tag attribute - learn how to use div class tag attribute into your page using Dreamweaver" />
<style type="text/css">
body {
padding: 12px; font-family: Verdana, Geneva, sans-serif; font-size: 14px; line-height: 20px;}
.container
{ width: 200px; background: #D8FBD6; border: 1px dotted black;
padding: 8px; margin-top: 10px; }
div.generic ul {color:green;}
-->
</style>
</head>
<body>
<div class="container">
<p>Generic content...</p>
<ul>
<li>Text 1</li>
<li>Text 2</li>
<li>Text 3</li>
</ul>
</div>
</html>
CSS cod above will display this CSS result -
HTML div class tag attribute
HTML div class tag attribute - html tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.