Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 1998 09:38:00 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        groggy@iname.com, freebsd-questions <questions@FreeBSD.ORG>
Subject:   Re: lynx html
Message-ID:  <19980923093800.A10645@emsphone.com>
In-Reply-To: <Pine.BSF.3.96.980922123722.1725D-100000@abc.xyz.net>; from "groggy@iname.com" on Tue Sep 22 12:42:05 GMT 1998
References:  <Pine.BSF.3.96.980922123722.1725D-100000@abc.xyz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 22), groggy@iname.com said:
> here is a good example of what my problems were. try this HTML
> document in lynx 2.8 ... then try it in any other browser.

_FIRST_, run it through an html validator such as the one at
http://validator.w3.org/ .  I've pasted in the analysis of your page (I
fixed your typo on line 8 before sending it).  Just because it displays
in Netscape does not mean it is valid HTML.  In fact, I'd like to see
Netscape add syntax-checking like this to its browser, and maybe put a
little red X in the corner of the page if the page has problems.

	-Dan Nelson
	dnelson@emsphone.com

Note: This document didn't start with the required DOCTYPE declaration,
so validator inserted the following doctype before attempting to
validate the page:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    
This document needs a doctype before it will be valid. 

01> <TITLE> This is a TEST! </TITLE>
02> 
03> HEY! WHAT IS THE DIFFERENCE!
04> 
05> <CENTER><PRE>a bb  ccc   dddd    eeeee     ffffff</PRE></CENTER>
06> <PRE><CENTER>a bb  ccc   dddd    eeeee     ffffff</CENTER></PRE>
         ^     document type does not allow
               element "CENTER" here
07> 
08> <H1> HEY!  WHY IS THIS CENTERED! </H1>
09> aaa
10>  bbb
11>   ccc
12>    ddd
13>     eee
14> <PRE>
15> <H1> HEY! WHERE IS MY WHITESPACE! </H1>
    ^  document type does not allow element "H1" here
16> aaa
17>  bbb
18>   ccc
19>    ddd
20>     eee
21> </PRE>

Sorry, this document does not validate as HTML 3.2. 

** Weblint Results

Below are the results of running Weblint on this document: 

    line 1: outer tags should be <HTML> .. </HTML>. 
    line 1: <TITLE> can only appear in the HEAD element. 
    line 5: <CENTER> is extended markup. 
    line 5: </CENTER> is extended markup. 
    line 6: <CENTER> is extended markup. 
    line 6: </CENTER> is extended markup. 
    expected tag(s) not seen: HEAD BODY 

** Outline

Below is an outline for this document, automatically generated from the
heading tags (<H1> through <H6>.)

    HEY! WHY IS THIS CENTERED! 
    HEY! WHERE IS MY WHITESPACE! 

If this doesn't look like a real outline, it is likely that the heading
tags are not being used properly. (Headings should reflect the logical
structure of the document; they should _not_ be used simply to add
emphasis, or to change the font size.)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980923093800.A10645>