Markup validation errors

Hi chaps, as ever when trying to improve my knowledge I seem to dig into a deaper hole, on this occasion I tried the W3C markup validation service (http://validator.w3.org/) but like all of these things I’m now stuck 'cause I don’t understand the errors, things like :

Literal is missing closing delimiter.

Document type does not allow element “LINK” here.

End tag for element “HEAD” which is not open.

Document type does not allow element “BODY” here.

NET-enabling start-tag requires SHORTTAG YES

Apart from maybe giving me some idea as to what to do (ie I understand I can’t get into the code to change it, not that I’d know how) ! should I try and use something like “HTML Tidy” ?

Any advice very welcome.

Regards from rainy Southampton … Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 7/9/08 (at 06:35 -0400) Roger Burton said:

Apart from maybe giving me some idea as to what to do (ie I
understand I can’t get into the code to change it, not that I’d know
how) ! should I try and use something like “HTML Tidy” ?

Short answer: no, absolutely not. Freeway will output valid code;
the problems must be introduced through something non-standard that
you’ve added or done.

The only real solution that you should attempt is finding out what’s
causing the oddity and fixing that. It won’t be core
Freeway-produced code, it will be due to code added yourself in a
markup item or produced by a third-party action that needs an update.

Long answer: erm - well, I really mustn’t take the time to write
this, I’m very sorry! I have a huge amount of work to get done
before tomorrow. In fact, I should just quit my email app…

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

… and then there was no Keith … hope you managed to get some proper work done. OK so, in fact all the sites (that is 4 of them) have similar errors, let’s maybe stick to this one though, here’s the site:

http://www.rogerburtonwebdesign.co.uk/

…I’m a little embarrassed as it’s not really finished yet and I’m still messing with it, I don’t think it has anything really odd though, a couple of swfs, a link to an external directory site, an inserted bit of markup “…before head …” for Google verification, otherwise everything has been built in freeway, any advice much appreciated.

Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Roger,

The verify tag from Google is the problem. Remove the / at the end and
the page will validate. Self closing tags like that are XML (XHTML),
not HTML which is what your document is.

Joe

On 7 Sep 2008, at 15:48, Roger Burton wrote:

… and then there was no Keith … hope you managed to get some
proper work done. OK so, in fact all the sites (that is 4 of them)
have similar errors, let’s maybe stick to this one though, here’s
the site:

http://www.rogerburtonwebdesign.co.uk/

…I’m a little embarrassed as it’s not really finished yet and I’m
still messing with it, I don’t think it has anything really odd
though, a couple of swfs, a link to an external directory site, an
inserted bit of markup “…before head …” for Google verification,
otherwise everything has been built in freeway, any advice much
appreciated.

Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, as ever, Joe … I’ve said it before, you’re very clever.

I really don’t know if I’ll ever get good enough at this stuff to be able to recognise errors like that !

This one remains:

Line 79, Column 221: NET-enabling start-tag requires SHORTTAG YES.
…Southampton Web Designers directory" />
:email:
The sequence can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the ‘/’ terminates the tag <FOO (with an implied ‘>’). However, since many browsers don’t interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.

Any advice please ?

Regards Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s the Freeindex markup you have at the bottom of your page and
has the same problem. Double click the markup item and remove the /
from the end of:

 <img src="http://www.freeindex.co.uk/fx/link.gif" border="0"  

alt=“We are featured in the FreeIndex Southampton Web Designers
directory” />

If you use Firefox and look at the source the offending bit of code is
in red.

Joe

On 8 Sep 2008, at 07:55, Roger Burton wrote:

Thanks, as ever, Joe … I’ve said it before, you’re very clever.

I really don’t know if I’ll ever get good enough at this stuff to be
able to recognise errors like that !

This one remains:

Line 79, Column 221: NET-enabling start-tag requires SHORTTAG YES.
…Southampton Web Designers directory" />
:email:
The sequence can be interpreted in at least two different
ways, depending on the DOCTYPE of the document. For HTML 4.01
Strict, the ‘/’ terminates the tag <FOO (with an implied ‘>’).
However, since many browsers don’t interpret it this way, even in
the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it
completely in pure HTML documents and reserve its use solely for
those written in XHTML.

Any advice please ?

Regards Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Excellent, Joe, with a bit of luck I’ll spot that in the future, are there many gotchas like that or maybe I should go for Xhtml transitional or will that cause other problems, I’ll read up on it in the reference - Best Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, the main thing to take away from this is don’t always assume
code you’ve been given is valid. Read any documentation that comes
with the code, if it is in HTML format then you could make the page
XHTML or convert them to HTML. Converting to XHTML shouldn’t cause any
issues.

Hope this helps.

Joe

On 8 Sep 2008, at 11:40, Roger Burton wrote:

Excellent, Joe, with a bit of luck I’ll spot that in the future, are
there many gotchas like that or maybe I should go for Xhtml
transitional or will that cause other problems, I’ll read up on it
in the reference - Best Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry Joe, I need another lesson, as I metioned in another post I’ve been trying to find the problem myself but have failed dismally … here’s the error:

Line 93, Column 10: ID “ROGERBURTONDESIGNSOUTHAMPTONGRAPHICDESIGNWEBDESIGN” already defined.
<div id=“RogerBurtondesignSouthamptongraphicdesignwebdesign” style="position:ab

Line 87, Column 10: ID “ROGERBURTONDESIGNSOUTHAMPTONGRAPHICDESIGNWEBDESIGN” first defined here.

…it’s on a different site:

http://www.rogerburton.co.uk/

I will certainly try and NOT ask you every time I find an error and will promise to try and sort it myself.

Best Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Roger,

You have two items with the same id. Did you add an id to one of them
through markup or the extended dialog?

The problem items are the one containing the Flash image that says
Roger Burton Design Consultancy and the one containing the text “I am
a Graphic Designer…”. They both have the id:

RogerBurtondesignsouthamptongraphicdesignwebdesign

I couldn’t repeat this in Freeway (it automatically adds a number to
the end of the id to make it unique) but if it is Freeway generated I
would love to see the file.

Cheers,
Joe

On 8 Sep 2008, at 14:32, Roger Burton wrote:

Sorry Joe, I need another lesson, as I metioned in another post I’ve
been trying to find the problem myself but have failed dismally …
here’s the error:

Line 93, Column 10: ID
“ROGERBURTONDESIGNSOUTHAMPTONGRAPHICDESIGNWEBDESIGN” already defined.

http://www.rogerburton.co.uk/

I will certainly try and NOT ask you every time I find an error and
will promise to try and sort it myself.

Best Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ok now I’m beginning to understand a little more (no not really) … let me try and explain what I’ve been doing, probably rather clumsily.

I’ve tried to make everything legal and good for Google so I’ve been copying and pasting stuff all over the place so that my name, location, trade etc is everywhere it should be (I told you it was clumsy), so at some point I have repeated myself - now this is in a box in freeway that says “Title” - now this is a little confusing because the page “Title” allows spaces between words but with the item “Title” Freeway deletes the spaces … what’s the difference between these 2 titles (and are these really 'divs") ?

Also whilst trying to find the validation error I found a numeral (1) at the end of a title somewhere and figured it was a typo and deleted it … don’t you just love amateurs.

This is all good though 'cause it’s teaching me a lot (and I guess any other beginners that are watching) !

Best Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options