W3C validation error

Discussion in 'HTML' started by Dave Kelly, Dec 16, 2007.

  1. Dave Kelly

    Dave Kelly Guest

    I do not understand what this message is trying to tell me when I
    validate the code at w3c.

    Where do I go to learn this type of thing.

    Website causing the error. www.texasflyfishers.org/flytying/Receipe.html

    Error the W3C validate give me.

    The detected DOCTYPE Declaration "<!DOCTYPE HTML PUBLIC "-//W3C//DTD
    HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html 4.01/
    Transitional">" has been suppressed and the DOCTYPE for "HTML 4.01
    Transitional" inserted instead, but even if no errors are shown below
    the document will not be Valid until you update it to reflect this new
    DOCTYPE.

    Can someone help?
    TIA
    Dave
    Dave Kelly, Dec 16, 2007
    #1
    1. Advertising

  2. Dave Kelly

    Bone Ur Guest

    Well bust mah britches and call me cheeky, on Sun, 16 Dec 2007 21:37:45 GMT
    Dave Kelly scribed:

    > I do not understand what this message is trying to tell me when I
    > validate the code at w3c.
    >
    > Where do I go to learn this type of thing.
    >
    > Website causing the error. www.texasflyfishers.org/flytying/Receipe.html
    >
    > Error the W3C validate give me.
    >
    > The detected DOCTYPE Declaration "<!DOCTYPE HTML PUBLIC "-//W3C//DTD
    > HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html 4.01/
    > Transitional">" has been suppressed and the DOCTYPE for "HTML 4.01
    > Transitional" inserted instead, but even if no errors are shown below
    > the document will not be Valid until you update it to reflect this new
    > DOCTYPE.
    >
    > Can someone help?


    The recommended transitional dtd is:

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

    --
    Bone Ur
    Cavemen have formidable pheromones.
    Bone Ur, Dec 16, 2007
    #2
    1. Advertising

  3. Dave Kelly

    dorayme Guest

    In article
    <
    >,

    Dave Kelly <> wrote:

    > I do not understand what this message is trying to tell me when I
    > validate the code at w3c.
    >
    > Where do I go to learn this type of thing.
    >
    > Website causing the error. www.texasflyfishers.org/flytying/Receipe.html
    >
    > Error the W3C validate give me.
    >
    > The detected DOCTYPE Declaration "<!DOCTYPE HTML PUBLIC "-//W3C//DTD
    > HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html 4.01/
    > Transitional">" has been suppressed and the DOCTYPE for "HTML 4.01
    > Transitional" inserted instead, but even if no errors are shown below
    > the document will not be Valid until you update it to reflect this new
    > DOCTYPE.
    >



    Not what I see at

    http://tinyurl.com/37jkbh

    or

    <http://validator.w3.org/check?uri=http://www.texasflyfisher
    s.org%2Fflytying%2FReceipe.html&charset=%28detect+automatically%29
    &doctype=Inline&group=0>

    --
    dorayme
    dorayme, Dec 16, 2007
    #3
  4. Dave Kelly

    dorayme Guest

    In article
    <>,
    dorayme <> wrote:

    > In article
    > <
    > >,

    > Dave Kelly <> wrote:
    >
    > > I do not understand what this message is trying to tell me when I
    > > validate the code at w3c.
    > >
    > > Where do I go to learn this type of thing.
    > >
    > > Website causing the error. www.texasflyfishers.org/flytying/Receipe.html
    > >
    > > Error the W3C validate give me.
    > >
    > > The detected DOCTYPE Declaration "<!DOCTYPE HTML PUBLIC "-//W3C//DTD
    > > HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html 4.01/
    > > Transitional">" has been suppressed and the DOCTYPE for "HTML 4.01
    > > Transitional" inserted instead, but even if no errors are shown below
    > > the document will not be Valid until you update it to reflect this new
    > > DOCTYPE.
    > >

    >
    >
    > Not what I see at
    >
    > http://tinyurl.com/37jkbh
    >
    > or
    >
    > <http://validator.w3.org/check?uri=http://www.texasflyfisher
    > s.org%2Fflytying%2FReceipe.html&charset=%28detect+automatically%29
    > &doctype=Inline&group=0>


    On the other hand, I notice that you have a ³</tbody>² but no
    <tbody> in your last table. This you may not want to have?

    And I also wondered why you are using Transitional. Is it because
    you want to use align=... with a clear conscience? <g>

    --
    dorayme
    dorayme, Dec 16, 2007
    #4
  5. Dave Kelly

    Dave Kelly Guest

    On Dec 16, 4:33 pm, dorayme <> wrote:
    >
    > On the other hand, I notice that you have a ³</tbody>² but no
    > <tbody> in your last table. This you may not want to have?


    This is an oversite.

    > And I also wondered why you are using Transitional. Is it because
    > you want to use align=... with a clear conscience? <g>
    >


    This is not the first time you have peeked in my ear and read my mind.
    (must produce more wax to cover that hole up)

    I want to put an image in a paragraph and have the text wrap around
    it.
    I googled both W3C and the internet for examples and did not find
    anything
    appropriate in a CSS format.

    I tried something simular to this as an inline style format.

    <STYLE>
    IMG {
    float: left;
    }
    </STYLE>

    <IMG src="picture.png"> words in the paragraph.


    <STYLE>
    IMG{
    float:right;
    }
    </STYLE>

    <IMG src="picture.png">word in the paragraph.

    and only the last one worked. Both images were on the right side.

    Would you or anyone else have reference to a tutoral?

    Thanks for the feedback.
    Dave
    Dave Kelly, Dec 16, 2007
    #5
  6. Dave Kelly wrote:
    > On Dec 16, 4:33 pm, dorayme <> wrote:
    >> On the other hand, I notice that you have a ³</tbody>² but no
    >> <tbody> in your last table. This you may not want to have?

    >
    > This is an oversite.
    >
    >> And I also wondered why you are using Transitional. Is it because
    >> you want to use align=... with a clear conscience? <g>
    >>

    >
    > This is not the first time you have peeked in my ear and read my mind.
    > (must produce more wax to cover that hole up)
    >
    > I want to put an image in a paragraph and have the text wrap around
    > it.
    > I googled both W3C and the internet for examples and did not find
    > anything
    > appropriate in a CSS format.
    >
    > I tried something simular to this as an inline style format.
    >
    > <STYLE>
    > IMG {
    > float: left;
    > }
    > </STYLE>
    >
    > <IMG src="picture.png"> words in the paragraph.
    >
    >
    > <STYLE>
    > IMG{
    > float:right;
    > }
    > </STYLE>
    >
    > <IMG src="picture.png">word in the paragraph.
    >
    > and only the last one worked. Both images were on the right side.
    >
    > Would you or anyone else have reference to a tutoral?


    Are your putting both STYLE elements in the same document? If so, of
    course both images with be on the right! You first say images (all
    images) float left. Then your overwrite that rule with images float
    left! It's not like you say "Simon says" or something, if you want each
    of the images to be styled differently you need to create a CLASS on
    some other selector to differentiate one image from the other.

    In your document head...

    <style type="text/css">
    p { clear: both; }
    img.pushRight { float: right; margin-left: 1em; }
    img.pushLeft { float: left; margin-right: 1em; }
    </style>


    In the body...

    <p><img class="pushLeft" src="pix.jpg" alt="pix">
    This image will be to the left of these words...
    </p>

    <p><img class="pushRight" src="pix.jpg" alt="pix">
    And this image will be to the right of these words...
    </p>

    Try the tutorials at www.htmldog.com and get some basics.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 17, 2007
    #6
  7. Dave Kelly

    dorayme Guest

    In article
    <
    m>,
    Dave Kelly <> wrote:

    > On Dec 16, 4:33 pm, dorayme <> wrote:
    > >
    > > On the other hand, I notice that you have a ³</tbody>² but no
    > > <tbody> in your last table. This you may not want to have?

    >
    > This is an oversite.
    >
    > > And I also wondered why you are using Transitional. Is it because
    > > you want to use align=... with a clear conscience? <g>
    > >

    >
    > This is not the first time you have peeked in my ear and read my mind.
    > (must produce more wax to cover that hole up)
    >
    > I want to put an image in a paragraph and have the text wrap around
    > it.
    > I googled both W3C and the internet for examples and did not find
    > anything
    > appropriate in a CSS format.
    >
    > I tried something simular to this as an inline style format.
    >
    > <STYLE>
    > IMG {
    > float: left;
    > }
    > </STYLE>
    >
    > <IMG src="picture.png"> words in the paragraph.
    >
    >
    > <STYLE>
    > IMG{
    > float:right;
    > }
    > </STYLE>
    >
    > <IMG src="picture.png">word in the paragraph.
    >
    > and only the last one worked. Both images were on the right side.
    >
    > Would you or anyone else have reference to a tutoral?
    >
    > Thanks for the feedback.
    > Dave


    http://netweaver.com.au/alt/floatleftFloatright.html

    the sort of thing you are looking for?

    --
    dorayme
    dorayme, Dec 17, 2007
    #7
  8. Dave Kelly

    BobaBird Guest

    On Sun, 16 Dec 2007 15:40:57 -0800 (PST), Dave Kelly
    <> wrote:

    > I tried something simular to this as an inline style format.
    >
    > <STYLE>
    > IMG {
    > float: left;
    > }
    > </STYLE>
    >
    > <IMG src="picture.png"> words in the paragraph.


    That's almost how to define a style for the page, placed in the <head>
    section, where the opening would be

    <style type="text/css">

    An inline style is composed as an attribute of the element, like

    <p><img style="float:left;" src="picture.png"> words in the
    paragraph.</p>
    --

    Charles
    BobaBird, Dec 17, 2007
    #8
  9. dorayme wrote:

    > On the other hand, I notice that you have a </tbody> but no <tbody> in
    > your last table. This you may not want to have?


    Even with the strict DTD, that's perfectly valid. The TBODY element is
    implicitly opened as soon as a TR element is encountered that is not
    enclosed in a THEAD or TFOOT element. The content models of the various
    table-related elements given in the strict DTD are:

    <!ELEMENT TABLE - -
    (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
    <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
    <!ELEMENT THEAD - O (TR)+ -- table header -->
    <!ELEMENT TFOOT - O (TR)+ -- table footer -->
    <!ELEMENT TBODY O O (TR)+ -- table body -->
    <!ELEMENT COLGROUP - O (COL)* -- table column group -->
    <!ELEMENT COL - O EMPTY -- table column -->
    <!ELEMENT TR - O (TH|TD)+ -- table row -->
    <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->

    You'll notice that TABLE *must* contain a TBODY and cannot contain a
    TR. Thus any TRs that are not part of the THEAD or TFOOT automatically
    begin the TBODY element, which has an optional opening tag. So the
    following is a valid TABLE element:

    <TABLE>
    <TR>
    <TD>Hello
    </TBODY>
    </TABLE>

    Such tables may be undesirable though, so it may be a good idea to create
    a custom DTD that tightens up the rules for opening and closing tags for
    table-related elements.

    --
    Toby A Inkster BSc (Hons) ARCS
    [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
    [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 10 days, 23:28.]

    Sharing Music with Apple iTunes
    http://tobyinkster.co.uk/blog/2007/11/28/itunes-sharing/
    Toby A Inkster, Dec 18, 2007
    #9
  10. Dave Kelly

    Dave Kelly Guest

    On Dec 16, 6:34 pm, dorayme <> wrote:
    > In article
    > <
    > m>,
    > Dave Kelly <> wrote:
    >
    >
    >
    > > On Dec 16, 4:33 pm, dorayme <> wrote:

    >
    > > > On the other hand, I notice that you have a ³</tbody>² but no
    > > > <tbody> in your last table. This you may not want to have?

    >
    > > This is an oversite.

    >
    > > > And I also wondered why you are using Transitional. Is it because
    > > > you want to use align=... with a clear conscience? <g>

    >
    > > This is not the first time you have peeked in my ear and read my mind.
    > > (must produce more wax to cover that hole up)

    >
    > > I want to put an image in a paragraph and have the text wrap around
    > > it.
    > > I googled both W3C and the internet for examples and did not find
    > > anything
    > > appropriate in a CSS format.

    >
    > > I tried something simular to this as an inline style format.

    >
    > > <STYLE>
    > > IMG {
    > > float: left;
    > > }
    > > </STYLE>

    >
    > > <IMG src="picture.png"> words in the paragraph.

    >
    > > <STYLE>
    > > IMG{
    > > float:right;
    > > }
    > > </STYLE>

    >
    > > <IMG src="picture.png">word in the paragraph.

    >
    > > and only the last one worked. Both images were on the right side.

    >
    > > Would you or anyone else have reference to a tutoral?

    >
    > > Thanks for the feedback.
    > > Dave

    >
    > http://netweaver.com.au/alt/floatleftFloatright.html
    >
    > the sort of thing you are looking for?
    >
    > --
    > dorayme


    Exactly. Thanks.
    and thanks to BobaBird also.

    Now I need to go try these.
    Dave Kelly, Dec 19, 2007
    #10
  11. Dave Kelly

    dorayme Guest

    In article <5n.co.uk>,
    Toby A Inkster <> wrote:

    > dorayme wrote:
    >
    > > On the other hand, I notice that you have a </tbody> but no <tbody> in
    > > your last table. This you may not want to have?

    >
    > Even with the strict DTD, that's perfectly valid.


    Hence my weasel words "This you may not want to have?". With JK's
    eagle eye, I cannot afford the least carelessness. <g>

    > The TBODY element is
    > implicitly opened as soon as a TR element is encountered that is not
    > enclosed in a THEAD or TFOOT element. The content models of the various
    > table-related elements given in the strict DTD are:
    >
    > <!ELEMENT TABLE - -
    > (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
    > <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
    > <!ELEMENT THEAD - O (TR)+ -- table header -->
    > <!ELEMENT TFOOT - O (TR)+ -- table footer -->
    > <!ELEMENT TBODY O O (TR)+ -- table body -->
    > <!ELEMENT COLGROUP - O (COL)* -- table column group -->
    > <!ELEMENT COL - O EMPTY -- table column -->
    > <!ELEMENT TR - O (TH|TD)+ -- table row -->
    > <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data
    > cell-->
    >
    > You'll notice that TABLE *must* contain a TBODY and cannot contain a
    > TR. Thus any TRs that are not part of the THEAD or TFOOT automatically
    > begin the TBODY element, which has an optional opening tag. So the
    > following is a valid TABLE element:
    >
    > <TABLE>
    > <TR>
    > <TD>Hello
    > </TBODY>
    > </TABLE>
    >
    > Such tables may be undesirable though, so it may be a good idea to create
    > a custom DTD that tightens up the rules for opening and closing tags for
    > table-related elements.


    About:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Lineupnumberedheadings</title>
    </head>
    <body>
    <TABLE>
    <TR>
    <TD>Hello
    </TBODY>
    </TABLE>
    </body>
    </html>

    My BBEdit says:

    Error: Close element “</tbody>†found but element wasn't open.
    Warning: Element “<tr>†implicitly closed here.
    Warning: Element “<td>†implicitly closed here.

    I am happy about the warnings (these can be controlled to some
    extent from Preferences/HTML Tools. But the *error* slightly
    disturbs me after reading your above?

    --
    dorayme
    dorayme, Dec 19, 2007
    #11
  12. Dave Kelly

    dorayme Guest

    In article
    <>,
    dorayme <> wrote:

    > My BBEdit says:
    >
    > Error: Close element “</tbody>†found but element wasn't open.
    > Warning: Element “<tr>†implicitly closed here.
    > Warning: Element “<td>†implicitly closed here.


    Actually it said:

    Error: Close element </tbody> found but element wasn't open.
    Warning: Element <tr> implicitly closed here.
    Warning: Element <td> implicitly closed here.

    --
    dorayme
    dorayme, Dec 19, 2007
    #12
    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. Fredrik Elestedt

    W3C validation

    Fredrik Elestedt, Nov 25, 2004, in forum: ASP .Net
    Replies:
    15
    Views:
    1,125
  2. xyZed

    W3C validation site ltips?

    xyZed, Jun 26, 2003, in forum: HTML
    Replies:
    5
    Views:
    903
    Isofarro
    Jun 27, 2003
  3. William Tasso
    Replies:
    0
    Views:
    727
    William Tasso
    Aug 22, 2003
  4. Bruce W...1

    W3C validation questions

    Bruce W...1, Nov 8, 2003, in forum: HTML
    Replies:
    5
    Views:
    425
    Bruce W...1
    Nov 8, 2003
  5. Frank
    Replies:
    9
    Views:
    1,537
    David Dorward
    May 3, 2004
Loading...

Share This Page