HTML and CSS Reference
In-Depth Information
align attribute for other tags, it is deprecated in the HTML and XHTML
standards in deference to stylesheet-based layout controls.
4.1.1.2. The nowrap attribute
Supported by Internet Explorer and Opera, but not Firefox or Netscape
Navigator, the nowrap attribute suppresses automatic word wrapping of
the text within the division. Line breaks will occur only where you have
placed carriage returns in your source document.
While the nowrap attribute probably doesn't make much sense for large
sections of text that would otherwise be flowed together on the page,
it can make things a bit easier when creating blocks of text with many
explicit line breaks: poetry, for example, or addresses. You don't have
to insert all those explicit <br> tags in a text flow within a <div nowrap>
tag. On the other hand, a large number of users with browsers that ig-
nore the nowrap attribute will see your text flow merrily along. If you are
targeting only Internet Explorer or Opera with your documents, consider
using nowrap where needed, but otherwise, we can't recommend this at-
tribute for general use.
4.1.1.3. The dir and lang attributes
The dir attribute lets you advise the browser in which direction the text
should be displayed, and the lang attribute lets you specify the language
used within the division. [ The dir attribute, 3.6.1.1 ] [ The lang attribute,
3.6.1.2 ]
4.1.1.4. The id attribute
Use the id attribute to label the document division for later reference by
a hyperlink, stylesheet, applet, or other automated process. In general,
an acceptable id value is any quote-enclosed string that uniquely iden-
tifies the division and that later can be used to reference that document
 
Search WWH ::




Custom Search