[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV ALIGNment problem
From: |
Hiram Lester, Jr. |
Subject: |
Re: LYNX-DEV ALIGNment problem |
Date: |
Fri, 13 Dec 1996 22:01:53 -0600 (CST) |
On Fri, 13 Dec 1996, Christopher R. Maden wrote:
> I am still going to be critical though - but differently.
>
> As an <hr> can not be part of a <p>, its appearance should imply the
> end of the <p>. The implied end and an express end should be
> identical. Authors who know the DTD may rely on the structure that it
> expresses; I rarely, if ever, use </p>.
Shame! :) I consider it bad style to leave off closing tags for
paragraphs and table elements although the later is all too common. :(
OPTION is also technically a container tag, but NOONE uses a closing tag
for it. I found a cool program recently called HTML-Pretty that formats
HTML files with indenting and such that makes it extremely readable, but
it REQUIRES </option> tags to not get confused on select blocks. I wrote
to the author about it, and got a reply a couple of days ago that it was
too difficult to change that portion, but the normalizing program included
with sgmls would insert missing </option>'s for you much as htmlpty will
insert other missing tags...
> Likewise, uncontained text should be assumed to be in its own <p>, and
> should be handled identically to an explicit <p>. Thus:
>
> <body> <body> <body> <body>
> <p>Line 1. Line 1. Line 1. <p>Line 1.</p>
> <hr> <hr> <hr> <hr>
> Line 2. Line 2. <p>Line 2. <p>Line 2.</p>
> </body> </body> </body> </body>
>
> should all be handled identically, IMO. (FWIW, SGMLS produces an
> identical ESIS, mod a few '\n's, for each of these, if anyone cares.)
Sadly enough, the <p> tag is RECOMMENDED, but not required. If you want
your documents to pass STRICT parsing, you need all unenclosed text to
appear in a <p> block, but as you have found, it will pass validation
without the <p> block. As a test, go to Webtechs and try using the Strict
option on a page without <p>'s, and you'll see that it won't pass. The
<p> is required under the recommended mode, but not in the deprecated
mode.
As a side note, this even applies for HTML 2.0 in which the <p> was first
declared as a container tag. In a previous message, I said I wasn't
sure... :)
+------------------------------------+-------------------------------+
| Hiram W. Lester, Jr. | E-Mail: address@hidden |
| Computer Science | Home page: |
| Middle Tennessee State University | http://pobox.com/~hwlester/ |
+------------------------------------+-------------------------------+
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- Re: LYNX-DEV ALIGNment problem, (continued)