HTML and CSS Reference
In-Depth Information
Element-Specific Attribute
nowrap This Internet Explorer-specific attribute is used to control the wrapping of text
within a <div> tag. If set to yes , text should not wrap. The default is no . CSS rules should
be used instead of this attribute.
Examples
<div align="justify">
<!-- IE syntax -->
All text within this division will be justified
</div>
<div class="special" id="div1" style="background-color: yellow;">
Divs are useful for setting arbitrary style
</div>
<div class="container">
<div class="wrapper">
<div class="content"><p> I have divitis </p></div>
</div>
</div>
Compatibility
HTML 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 2+, Opera 4+, Safari 1+
Notes
• A <div> tag is a generic block tag and is very useful for binding scripts or styles to
an arbitrary section of a document. It complements <span> , which is used inline.
• Excessive use of <div> tags is almost as bad as excessive use of tables, particularly
when structuring page content.
• The HTML 4 specification specifies that the datafld , dataformatas , and datasrc
attributes are reserved for <div> and might be supported in the future. They were
removed from XHTML, but Internet Explorer supports them for data binding.
• Under the HTML 4.01 strict specification, the align attribute is not supported.
• HTML 3.2 supports only the align attribute.
<dl> (Definition List)
This element encloses a list of terms and definitions. A common use for this element is to
implement a glossary.
Standard Syntax
<dl
class="class name(s)"
compact="compact" (transitional only)
Search WWH ::




Custom Search