W3C validation error

D

Dave Kelly

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
 
B

Bone Ur

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">
 
D

dorayme

<[email protected]
Dave Kelly said:
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>
 
D

dorayme

dorayme said:
<[email protected]



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>
 
D

Dave Kelly

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
 
J

Jonathan N. Little

Dave said:
This is an oversite.


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.
 
D

dorayme

<[email protected]
m>,
Dave Kelly said:
This is an oversite.


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?
 
B

BobaBird

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>
 
T

Toby A Inkster

dorayme said:
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/
 
D

dorayme

Toby A Inkster said:
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 said:
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?
 
D

dorayme

dorayme said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top