![]() |
|
<div>
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||
The "DIVision" element is used to group related texts together. The HTML 4.0 specification presents a database record delineated by <div>. This is easily accomplished with a report writer from a database. By modifying the text defined by <div> by specifying a "class=" or "id=" attribute the text can be easily modified using a stylesheet,
The specification states that <div> will place a
| align= deprecated
|
"The ALIGN attribute can be used to explicitly specify the horizontal alignment of paragraphs within a division:" (w3) | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"left"
|
Example <div align="left"> <p>"Paragraphs are rendered flush left (the default)." </div> "Paragraphs are rendered flush left (the default)." Note: the <p> tag is inside the <div> structure. (w3) This is the default for WebTV. |
|||||||||||||||||||||||||
"center"
|
<div align="center"><p>"Paragraphs are centered."</div>
"Paragraphs are centered." (w3)
|
|||||||||||||||||||||||||
"right"
|
<div align="right"><p>"Paragraphs are rendered flush right."</div>
"Paragraphs are rendered flush right." |
|||||||||||||||||||||||||
"justify"
|
<div align="justify"><p>"Text lines are justified where practical, otherwise this gives the same effect as the default align=left setting..."</div>
"Text lines are justified where practical, otherwise this gives the same effect as the default align=left setting. I can meander along for hours in an attempt to demonstrate the effectiveness of this tag. It is the controller of all typesetting-like function that a page designer might wish to use. Remember that we read best when large volumes of text are justified. However, browser justification may not be "perfect", depending on your browser."
(w3)
|
|||||||||||||||||||||||||
class=
|
||||||||||||||||||||||||||
clear=
|
"This attribute is common to all block-like elements. When text flows around a figure or table in the margin, you sometimes want to start the division below the figure rather than alongside it. The CLEAR attribute allows you to move down unconditionally:" (w3) | |||||||||||||||||||||||||
"left"
|
"move down until the left margin is clear" (w3) | |||||||||||||||||||||||||
"right"
|
"move down until the right margin is clear" (w3) | |||||||||||||||||||||||||
"all"
|
"move down until both margins are clear" (w3) | |||||||||||||||||||||||||
"## en"
|
"move down until there is at least 40 en units free" (w3) | |||||||||||||||||||||||||
"### pixels"
|
"move down until there is at least 100 pixels" (w3) | |||||||||||||||||||||||||
dir=
|
||||||||||||||||||||||||||
| "ltr" | ||||||||||||||||||||||||||
| "rtl" | ||||||||||||||||||||||||||
id=
|
||||||||||||||||||||||||||
lang=
|
||||||||||||||||||||||||||
nowrap
|
<div nowrap><p>"The NOWRAP attribute is used when you don't want the browser to automatically<br> wrap lines. You can then explicitly specify line breaks in paragrphs using the BR element."</div>
"The NOWRAP attribute is used when you don't want the browser to automatically Interesting note: there are no breaks in the example above. Netscape is not handling it properly inside tables. |
|||||||||||||||||||||||||
style=
|
||||||||||||||||||||||||||
title=
|
||||||||||||||||||||||||||