[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
HTMLSPEC-DIV

DIV

Usage

A block level element used to define "divisions" within a HTML document. If used inside a paragraph ( <p> ), the <div> tag will automatically terminate the paragraph; therefore, the <div> tag cannot be used to group elements inside a paragraph type.

Attributes

align=" left || center || right "


Used to specify the horizontal alignment of internal content.

style="text"


Used to define style characteristics or settings for grouped elements. For more info, see <style> tag.

Code Tip

None

Live Example

<html>
<head><title>Division Document Example</title></head>
<body>
<div align="left">This content is left justified.</div>
<div align="center">This content is center justified.</div>
<div align="right">This content is right justified.</div>
</body>
</html> 


HTML Tags Center

last edited (April 12, 2004) by leeos, Number of views: 1561, Current Rev: 6 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.