By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,489 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

Help me validate my website!

P: n/a
Hello,

I really need help in validating my WordPress website/blog so it conforms
to the Web standards as defined by W3C.org.

My site is http://miladinoski.trap17.com and it fails with 10 errors on
the validation test :
[
http://validator.w3.org/check?uri=ht...Inline&group=0
]

Thanks!

Miladin
Sep 19 '08 #1
Share this Question
Share on Google+
9 Replies


P: n/a
In our last episode, <op.uhqu5io8qqfb7m@whiteeagle-laptop>, the lovely and
talented Miladin Miladinoski broadcast on
comp.infosystems.www.authoring.html:
Hello,
I really need help in validating my WordPress website/blog so it conforms
to the Web standards as defined by W3C.org.
My site is http://miladinoski.trap17.com and it fails with 10 errors on
the validation test :
[
http://validator.w3.org/check?uri=ht...Inline&group=0
]
I do not understand the problem. The validator messages are clear and
concise. Some of these lines, however, can be the result of previous errors,
so start by closing the link element, and validate again.
--
Lars Eighner <http://larseighner.com/us****@larseighner.com
Good Morning, Carnivore! - Anthrax botulin nuclear flight mail Akbar reservoir
Ramadan letter activate bridge Abdul safehouse virgins money detonators Allah
smallpox Glaspie Springfield agent airport dispersal facility counterfeit
Sep 19 '08 #2

P: n/a
Lars Eighner wrote:
In our last episode, <op.uhqu5io8qqfb7m@whiteeagle-laptop>, the lovely and
talented Miladin Miladinoski broadcast on
comp.infosystems.www.authoring.html:
>Hello,
>I really need help in validating my WordPress website/blog so it conforms
to the Web standards as defined by W3C.org.
>My site is http://miladinoski.trap17.com and it fails with 10 errors on
the validation test :
[
http://validator.w3.org/check?uri=ht...Inline&group=0
]

I do not understand the problem. The validator messages are clear and
concise. Some of these lines, however, can be the result of previous errors,
so start by closing the link element, and validate again.

Perhaps the OP's problem is that he wants to fix errors created by Word
Press using Word Press. He needs to open the HTML file in a text editor
and manually fix the errors.

--
Ed Mullen
http://edmullen.net
Beauty is in the eye of the beer holder.
Sep 20 '08 #3

P: n/a
On 19 Sep, 21:59, "Miladin Miladinoski" <i.am.afr...@from.spamwrote:
Hello,

I really need help in validating my WordPress website/blog so it conforms*
to the Web standards as defined by W3C.org.

My site ishttp://miladinoski.trap17.comand it fails with 10 errors on *
the validation test :
[ *http://validator.w3.org/check?uri=ht...trap17.com...*
]
The first error ("Line 295, Column 289: end tag for "link" omitted,
but OMITTAG NO was specified .") is pointing to this line:

<link media="screen" type="text/css" href="http://
miladinoski.trap17.com/wp-content/plugins/reply-w-comment-preview/css/
at-reply.css" rel="stylesheet">

The tag should be closed with ' />'.

This error is generated by the 'reply-w-comment-preview' plug-in on
line 35.
Sep 20 '08 #4

P: n/a
On Sat, 20 Sep 2008 05:44:18 +0200, Roy A. <ro*********@gmail.comwrote:
The first error ("Line 295, Column 289: end tag for "link" omitted,
but OMITTAG NO was specified .") is pointing to this line:

<link media="screen" type="text/css" href="http://
miladinoski.trap17.com/wp-content/plugins/reply-w-comment-preview/css/
at-reply.css" rel="stylesheet">

The tag should be closed with ' />'.

This error is generated by the 'reply-w-comment-preview' plug-in on
line 35.
OK, thanks very much, after fixing that error (which i didn't knew which
fault is it sorry for my newbieness) 3 errors have dissapeared, but now I
need help with the last 4 ones. To me it seems that they are fine, but I'm
obviously not an expert and need help in what do I need to edit so they
dissapear.

Thanks!

Miladin

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Sep 20 '08 #5

P: n/a
On 2008-09-20, Miladin Miladinoski <i.*********@from.spamwrote:
OK, thanks very much, after fixing that error (which i didn't knew which
fault is it sorry for my newbieness) 3 errors have dissapeared, but now I
need help with the last 4 ones. To me it seems that they are fine, but I'm
obviously not an expert and need help in what do I need to edit so
they dissapear.
You might be better off creating your web page 'by hand' rather than
having software generate it for you. Some of the html looks a little
chaotic :-).

Next error:

#v+
Line 376, Column 24: document type does not allow element "style" here.

<style type='text/css'>
#v-

refers to:

#v+
<style type='text/css'>
.gallery {
margin: auto;
}
.gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;}
.gallery img {
border: 2px solid #cfcfcf;
}
.gallery-caption {
margin-left: 0;
}
</style>
#v-

Which, when written in this fashion, should be in the head rather than
the body. Having said that you would be better served by placing all the
styles as _external_ css.

Andrew

--
Do you think that's air you're breathing now?
Sep 20 '08 #6

P: n/a
On 20 Sep, 10:05, "Miladin Miladinoski" <i.am.afr...@from.spamwrote:
On Sat, 20 Sep 2008 05:44:18 +0200, Roy A. <royarnes...@gmail.comwrote:
The first error ("Line 295, Column 289: end tag for "link" omitted,
but OMITTAG NO was specified .") is pointing to this line:
<link media="screen" type="text/css" href="http://
miladinoski.trap17.com/wp-content/plugins/reply-w-comment-preview/css/
at-reply.css" rel="stylesheet">
The tag should be closed with ' />'.
This error is generated by the 'reply-w-comment-preview' plug-in on
line 35.

OK, thanks very much, after fixing that error (which i didn't knew which *
fault is it sorry for my newbieness) 3 errors have dissapeared, but now I*
need help with the last 4 ones. To me it seems that they are fine, but I'm *
obviously not an expert and need help in what do I need to edit so they *
dissapear.
I don't have WordPress, but it seems to be an error in 'media.php'. It
inserts a style
element in the document body. It is suggested that you copy the css
content from
media.php into your style.css (line 373). Line 412 is said missing an
end slash. I
don't know, look at this (just skip the comment to Dickie):

http://wordpress.org/support/topic/164825

Here is the style you're looking for:

<style type='text/css'>
..gallery {
margin: auto;
}
..gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%; }
..gallery img {
border: 2px solid #cfcfcf;
}
..gallery-caption {
margin-left: 0;
}
</style>
Sep 20 '08 #7

P: n/a
In our last episode, <op.uhrsq1wgqqfb7m@whiteeagle-laptop>, the lovely and
talented Miladin Miladinoski broadcast on
comp.infosystems.www.authoring.html:
On Sat, 20 Sep 2008 05:44:18 +0200, Roy A. <ro*********@gmail.comwrote:
>The first error ("Line 295, Column 289: end tag for "link" omitted,
but OMITTAG NO was specified .") is pointing to this line:

<link media="screen" type="text/css" href="http://
miladinoski.trap17.com/wp-content/plugins/reply-w-comment-preview/css/
at-reply.css" rel="stylesheet">

The tag should be closed with ' />'.

This error is generated by the 'reply-w-comment-preview' plug-in on
line 35.
OK, thanks very much, after fixing that error (which i didn't knew which
fault is it sorry for my newbieness) 3 errors have dissapeared, but now I
need help with the last 4 ones. To me it seems that they are fine, but I'm
obviously not an expert and need help in what do I need to edit so they
dissapear.
Just working from memory here:

You ran the a tag into attributes a couple of times. Use search to
check for <atitle and <ahref (you must have a space after the <a ).
You did the same with <imgsrc which must be changed to <img src.
You put a style element in the body of your document. It must be moved to
the head or removed altogether. Along about line 529 or thereabouts
you opened a paragraph, had a script and then opened paragraph again.
You cannot have a paragraph in a paragraph, so you must eliminate one of the
paragraph opens or you must close the first one before you open the second.

That's all I can remember, but if there are still problems after that, I'll
look at it again.
--
Lars Eighner <http://larseighner.com/us****@larseighner.com
Health is merely the slowest possible rate at which one can die.
Sep 20 '08 #8

P: n/a
On 20 Sep, 10:54, "Roy A." <royarnes...@gmail.comwrote:
I don't have WordPress, but it seems to be an error in 'media.php'. It
inserts a style
element in the document body. It is suggested that you copy the css
content from
media.php into your style.css (line 373). Line 412 is said missing an
end slash. I
don't know, look at this (just skip the comment to Dickie):

http://wordpress.org/support/topic/164825
I downloaded WordPress 2.5.2, but nothing matches. The link is about
"WordPress version: 2.5". It's an error in the core,
and still not fixed. You could try to write an plug-in like Dickie is
suggesting, but even the core code is a mess. A found the style code
in "wp-includes/media.php" (on line 426), but by simply removing that
an return an empty variable to the $output variable, you're taking
away a feature.

A couple of lines below (the if sentence on line 460) i found this
snippet:

<br style="clear: both" />

Well, that's well formed, but not valid. The clear property applies
only to block-level elements, not inline text-level elements like the
'br' element. To be valid they should have used a block-level element
or (in an transitional document) the deprecated 'clear' attribute <br
clear="both" />.

With a lot of work you could manage to make it well formed, but it
would still not be valid. I think you would have to let it go, and
live with it. And I think it would be better in the long run to just
report the bugs and join their community.

http://wordpress.org/support/
Sep 20 '08 #9

P: n/a
On 2008-09-20, Roy A. <ro*********@gmail.comwrote:
[...]
><br style="clear: both" />

Well, that's well formed, but not valid. The clear property applies
only to block-level elements, not inline text-level elements like the
'br' element.
I think technically it's still valid-- using styles that don't apply
just means they don't apply.

CSS isn't exactly valid or invalid in the same way HTML is, but it can
have errors in it, but clear: both isn't an error whatever you set it
on.

You are right clear is only supposed to apply to block-level elements
since CSS 2.1, but all browsers make an exception for <brI suppose
since to treat <br clear="left"differently from <br style="clear:
left"would just be confusing.
Sep 20 '08 #10

This discussion thread is closed

Replies have been disabled for this discussion.