| home / web / dev / html4nsie / text |
|
|
Text
|
![]() Example 1 |
![]() Example 2 |
If you look at it from the purist's point of view, p elements are rendered correctly with the following exception in Explorer: The space after a paragraph and before the next block-level element is not rendered if you do not include the end tag to the paragraph, unless the next element is a paragraph, a heading, a list, a blockquote, or a pre element. Confused? Let me explain. The following example:
<p>This is a paragraph. <hr> <p>This is another paragraph.
is rendered with no blank line between the first p element and the hr element (Example 1), while this example:
<p>This is a paragraph.</p> <hr> <p>This is another paragraph.
is rendered with the normal blank line between the p element and the hr element (Example 2).
Netscape places a blank line between the first p element and the hr element with or without an end tag.
The br element is rendered as indicated by the specification, and the character also serves as a way to prohibit line breaks.
Neither browser supports the semantics of the soft hyphen (­), displaying it as a normal hyphen. Explorer may break a line where it occurs.
Both browsers support the pre element. In addition, Netscape supports a cols attribute that specifies the number of columns in the element's contents, and a wrap attribute that indicates that the text should be wrapped at the specified width, or the screen width if the cols attribute is missing. Neither elements are part of the HTML 4.01 specifications. Both user agents render tab characters as tabs to tab stops 8 characters apart.
Netscape and Explorer both recognize the ins element, displaying it with an underline. This may cause it to look like a link in some cases. They also recognize the del element, displaying it as struck-through text. Neither browser does anything special with the value of the datetime or cite attributes.
All Rights Reserved. Legal Notices.
Created: Mar. 12, 1998
Revised: November 15, 2004