Sunday, March 28, 2010
Divisions
Posted by devlevis | Sunday, March 28, 2010 | Category:
divisions in html,
free html course,
how to make divisions using html code,
html tricks,
learn html
|
Divisions are a higher level of block formatting, usually reserved for groups of
related paragraphs, entire pages, or sometimes only a single paragraph. The division
tag (<div>) provides a simple solution for formatting larger sections of a document.
For example, if you need a particular section of a document outlined with a border,
you can define an appropriate style and delimit that part of the document with
<div> tags, as in the following example
<html>
<head>
<style>
.bordered { border-style:solid; }
</style>
</head>
<body>
<p>This is a normal paragraph.</p>
<div class-"bordered"><p>This is a paragraph delimited with
the defined div style which includes a border.</p></div>
</body>
</html>
Subscribe to:
Post Comments (Atom)



Currently have 0 comments: