Verification help?

Discussion in 'HTML' started by Robert Baer, Jul 27, 2007.

  1. Robert Baer

    Robert Baer Guest

    I have made a 27 line home page that W3C refuses to validate, and i
    do not know how to fix it.
    Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
    Line 12 ("..supplier of low pressure..") also gets a complaint.
    Sorry about the folding, which messes with number of lines seen here.
    ******** start
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css" media="all">
    </style>
    <meta name="copyright"
    content="Copyright (C) 2007 Petro-Gas Lift Tech LLC All rights
    reserved.">
    <meta http-equiv="description"
    content="Customer-oriented manufacturer &amp; supplier of low pressure
    gas well dewatering lifters." />
    <meta http-equiv="keywords" content="Lifter, Pump, dewater, de-water,
    dewatering, de-watering, efficent, economical, green" />
    <title>Petro-Gas Lift Tech LLC</title>
    </head>
    <body bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#660099">
    <a name=top></a>

    <div style="position: absolute; height: 382px; width: 663px; top: 10px;
    left: 50px;">
    <img style="height: 382px; width: 663px; top: 10px; left: 50px;"
    src="PGLtech.gif" border="0" alt="">
    </div>


    </body>
    </html>

    ******* end
    Robert Baer, Jul 27, 2007
    #1
    1. Advertising

  2. Robert Baer

    Nik Coughlin Guest

    Robert Baer wrote:
    > I have made a 27 line home page that W3C refuses to validate, and i
    > do not know how to fix it.
    > Line 6 is *DIRECTLY* from W3C and yet they bitch about it.


    That's because you're using an HTML 4.0 Transitional doctype and that line
    is XHTML

    > Line 12 ("..supplier of low pressure..") also gets a complaint.


    Those two lines have XHTML style tags. Change the end of those lines to be
    > instead of />
    Nik Coughlin, Jul 27, 2007
    #2
    1. Advertising

  3. Robert Baer wrote:

    > I have made a 27 line home page that W3C refuses to validate, and i
    > do not know how to fix it.

    <snip>
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


    Also use a proper, modern, and complete DOCTYPE. 4.0 was obsolete
    sometime in the last century.

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    See: http://www.w3.org/QA/2002/04/valid-dtd-list.html

    --
    -bts
    -Motorcycles defy gravity; cars just suck
    Beauregard T. Shagnasty, Jul 27, 2007
    #3
  4. Robert Baer

    cwdjrxyz Guest

    On Jul 26, 9:30 pm, Robert Baer <> wrote:
    > I have made a 27 line home page that W3C refuses to validate, and i
    > do not know how to fix it.
    > Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
    > Line 12 ("..supplier of low pressure..") also gets a complaint.
    > Sorry about the folding, which messes with number of lines seen here.
    > ******** start
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    >
    > <html>
    >
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    > <style type="text/css" media="all">
    > </style>
    > <meta name="copyright"
    > content="Copyright (C) 2007 Petro-Gas Lift Tech LLC All rights
    > reserved.">
    > <meta http-equiv="description"
    > content="Customer-oriented manufacturer &amp; supplier of low pressure
    > gas well dewatering lifters." />
    > <meta http-equiv="keywords" content="Lifter, Pump, dewater, de-water,
    > dewatering, de-watering, efficent, economical, green" />
    > <title>Petro-Gas Lift Tech LLC</title>
    > </head>
    > <body bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#660099">
    > <a name=top></a>
    >
    > <div style="position: absolute; height: 382px; width: 663px; top: 10px;
    > left: 50px;">
    > <img style="height: 382px; width: 663px; top: 10px; left: 50px;"
    > src="PGLtech.gif" border="0" alt="">
    > </div>
    >
    > </body>
    > </html>
    >
    > ******* end


    As pointed out in another answer, you are using the xhtml method of
    closing things such as meta and image that have no closing tags in
    html. The W3C validator is quite correct as calling this an error,
    because your Doctype says you are using html, not xhtml. In xhtml,
    everything has to be closed. When html has no closing tag, in xhtml
    you close as "blah />". In xhtml served correctly as application/xhtml
    +xml, failure to close everything often results in your getting a
    parsing error rather than the page being displayed. In xml, not
    closing everything is one of the most serious errors you can make in
    code. So far as I have seen, current browsers usually will forgive
    using the xhtml closing tag "blah /> even though it is a html error.
    cwdjrxyz, Jul 27, 2007
    #4
  5. Robert Baer

    Robert Baer Guest

    Nik Coughlin wrote:

    > Robert Baer wrote:
    >
    >> I have made a 27 line home page that W3C refuses to validate, and i
    >>do not know how to fix it.
    >> Line 6 is *DIRECTLY* from W3C and yet they bitch about it.

    >
    >
    > That's because you're using an HTML 4.0 Transitional doctype and that line
    > is XHTML
    >
    >
    >> Line 12 ("..supplier of low pressure..") also gets a complaint.

    >
    >
    > Those two lines have XHTML style tags. Change the end of those lines to be
    > > instead of />

    >
    >

    Thanks.
    Robert Baer, Jul 27, 2007
    #5
  6. Robert Baer

    Robert Baer Guest

    Beauregard T. Shagnasty wrote:

    > Robert Baer wrote:
    >
    >
    >> I have made a 27 line home page that W3C refuses to validate, and i
    >>do not know how to fix it.

    >
    > <snip>
    >
    >><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    >
    >
    > Also use a proper, modern, and complete DOCTYPE. 4.0 was obsolete
    > sometime in the last century.
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    > "http://www.w3.org/TR/html4/strict.dtd">
    >
    > See: http://www.w3.org/QA/2002/04/valid-dtd-list.html
    >

    Will try; found that "html" gave mucho errors that went away when
    used "HTML" in that line.
    Robert Baer, Jul 27, 2007
    #6
  7. Robert Baer

    Robert Baer Guest

    cwdjrxyz wrote:

    > On Jul 26, 9:30 pm, Robert Baer <> wrote:
    >
    >> I have made a 27 line home page that W3C refuses to validate, and i
    >>do not know how to fix it.
    >> Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
    >> Line 12 ("..supplier of low pressure..") also gets a complaint.
    >> Sorry about the folding, which messes with number of lines seen here.
    >>******** start
    >><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    >>
    >><html>
    >>
    >><head>
    >><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    >><style type="text/css" media="all">
    >></style>
    >><meta name="copyright"
    >> content="Copyright (C) 2007 Petro-Gas Lift Tech LLC All rights
    >>reserved.">
    >><meta http-equiv="description"
    >> content="Customer-oriented manufacturer &amp; supplier of low pressure
    >>gas well dewatering lifters." />
    >><meta http-equiv="keywords" content="Lifter, Pump, dewater, de-water,
    >> dewatering, de-watering, efficent, economical, green" />
    >><title>Petro-Gas Lift Tech LLC</title>
    >></head>
    >><body bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#660099">
    >><a name=top></a>
    >>
    >><div style="position: absolute; height: 382px; width: 663px; top: 10px;
    >>left: 50px;">
    >> <img style="height: 382px; width: 663px; top: 10px; left: 50px;"
    >>src="PGLtech.gif" border="0" alt="">
    >></div>
    >>
    >></body>
    >></html>
    >>
    >>******* end

    >
    >
    > As pointed out in another answer, you are using the xhtml method of
    > closing things such as meta and image that have no closing tags in
    > html. The W3C validator is quite correct as calling this an error,
    > because your Doctype says you are using html, not xhtml. In xhtml,
    > everything has to be closed. When html has no closing tag, in xhtml
    > you close as "blah />". In xhtml served correctly as application/xhtml
    > +xml, failure to close everything often results in your getting a
    > parsing error rather than the page being displayed. In xml, not
    > closing everything is one of the most serious errors you can make in
    > code. So far as I have seen, current browsers usually will forgive
    > using the xhtml closing tag "blah /> even though it is a html error.
    >

    Am a bit confused; are you saying that "closing" HTML lines like
    "blah >" is an error and not a proper "close"?
    Robert Baer, Jul 27, 2007
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rajesh Bawa

    Re: Outsoursing Hardware verification

    Rajesh Bawa, Jul 5, 2003, in forum: VHDL
    Replies:
    2
    Views:
    1,166
    Prasanna
    Aug 5, 2003
  2. Recruit Interns

    Verification Intern Positions Available

    Recruit Interns, Aug 14, 2003, in forum: VHDL
    Replies:
    0
    Views:
    1,205
    Recruit Interns
    Aug 14, 2003
  3. borovA
    Replies:
    1
    Views:
    12,302
    borovA
    Oct 3, 2003
  4. Replies:
    9
    Views:
    640
  5. Replies:
    1
    Views:
    306
Loading...

Share This Page