a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

OMITTAG and Self-closing tags

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> OMITTAG and Self-closing tags
Page: [1]
 
Starhugger

 

Posts: 538
Joined: 4/12/2005
Status: offline

 
OMITTAG and Self-closing tags - 5/22/2005 22:15:37   
I'm trying to do the W3C validation thang but have run into a stumbling block already. It has given me a gazillion errors of:

...end tag for "meta" omitted, but OMITTAG NO was specified...
...You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".

The example is for "meta" but it seems to be for a wide variety of tags. It claims they need an end tag, but I've never heard of them requiring an end tag. (e.g., meta). Is there a way to do an OMITTAG YES so that it doesn't freak out over this? I can't find any references to how or where to put this declaration. FP03 must be putting the NO declaration in on its own because it's nowhere in the code that I see in Code view. Can I override that somehow? I'd rather not go through all 116 HTML pages and check to be sure all my tags are self-closing (which I'd never heard of before this either).

I'd really appreciate some guidance about this. Thanks!

Starhugger
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: OMITTAG and Self-closing tags - 5/22/2005 22:25:37   
A simple way to help with that, is in FrontPage go to HTML view, right click somewhere on your page and then choose "Apply XML Formatting Rules" > Save > Publish.

That should very quickly and easily take care of most of those errors. :)

<edited for clarity>

< Message edited by Kitka -- 5/23/2005 2:56:42 >


_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to Starhugger)
Starhugger

 

Posts: 538
Joined: 4/12/2005
Status: offline

 
RE: OMITTAG and Self-closing tags - 5/23/2005 1:17:09   
quote:

ORIGINAL: Kitka

A simple way to help with that, is in FrontPage go to HTML view, right click and choose "Apply XML Formatting Rules".

That should take care of most of that sort of problem. :)

Thanks Kitka! I did that, which was a lot faster than I expected it would be (yay), but it doesn't seem to be working properly. Doing that did put in the "/>" but for some reason W3C Validator keeps saying they're not there, even in the lines where I know they are! I went through the whole site and did that to all the hml files and uploaded it all again. No change in the errors. I even tried getting it to access one file directly from my hard drive -- it had even more errors. I give up!

And then, it is also telling me I should be using a different DOCTYPE but I can't make head nor tails of what it's suggesting as the correct one:

The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.0 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.

What is the difference?? I don't get it.

So, I think I'm about to give up on trying to validate it like a good girl. If anyone has any ideas to correct this that won't take days to implement, I'd love to hear it. In the meantime, I think I'm just going to launch it and say the heck with it. I've done what I could, it'll have to be enough for now unless I discover specific problems that I can fix.

Thanks a lot for your help!  :)

Starhugger

(in reply to Kitka)
Tailslide

 

Posts: 6365
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: OMITTAG and Self-closing tags - 5/23/2005 2:20:52   
Hi Starhugger

Using xhtml (any flavour) every single tag must have a corresponding closing tag - even the single ones get it such as <br /> or <hr />.

I've had another look at your site - the validator is no longer throwing up warnings about a doc type so forget that one.

It is throwing up warnings about end tags and there are some missing you you'll need to work your way through them I'm afraid - there are also a couple of upper case tags which xhtml doesn't like.

I think the problem you were having is that your site was halfway between HTML and XHTML so you had to do a bit of work to get it to validate as either one - If you can though it's better to be XHTML.

If you get stuck on individual tags then let me know and we'll figure it out.

Also - (this may be controversial) the point about validating in my opinion is to get you code right, but if there's something in there that you simply cannot change and won't validate (I believe FP has things like this) then don't sweat it. Change what you can to get it right - if it's a matter of end tags etc then do it. If it's something you cannot change then live with it. Use the validator as a guide to right and wrong rather than something you live or die by. Plus the validator has been known to have bugs etc.

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to Starhugger)
Starhugger

 

Posts: 538
Joined: 4/12/2005
Status: offline

 
RE: OMITTAG and Self-closing tags - 5/23/2005 15:00:07   
Thanks Tailslide! I'll give it one more look-through before I hurl my 'puter off the balcony.  :)

Starhugger

(in reply to Tailslide)
Starhugger

 

Posts: 538
Joined: 4/12/2005
Status: offline

 
RE: OMITTAG and Self-closing tags - 5/23/2005 18:23:48   
quote:

ORIGINAL: Tailslide

It is throwing up warnings about end tags and there are some missing you you'll need to work your way through them I'm afraid - there are also a couple of upper case tags which xhtml doesn't like.

I think the problem you were having is that your site was halfway between HTML and XHTML so you had to do a bit of work to get it to validate as either one - If you can though it's better to be XHTML.

If you get stuck on individual tags then let me know and we'll figure it out.

It seems that all the "bad code" is being generated by FP03. ARGH!! I can't get at it. It seems to all be related to navigation bars, shared borders and themes. I guess I'll have to just leave it. It seems unfair that I can't put a gold star on my site because FP is screwing up. :)  Guess I'll just have to get over it. LOL Thanks again for your help, Tailslide!

Starhugger

(in reply to Tailslide)
dpf

 

Posts: 7126
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: OMITTAG and Self-closing tags - 5/24/2005 7:41:52   
quote:

Change what you can to get it right - if it's a matter of end tags etc then do it. If it's something you cannot change then live with it. Use the validator as a guide to right and wrong rather than something you live or die by
I totally agree.

_____________________________

Dan

(in reply to Tailslide)
Starhugger

 

Posts: 538
Joined: 4/12/2005
Status: offline

 
RE: OMITTAG and Self-closing tags - 5/25/2005 14:53:04   
Thanks Dan. I'm getting to the point where I have to be cost-effective with my time. I'm wasting too much time of problems and errors that FP creates on its own that DO have a visible effect, never mind the stuff that no one cares about except W3C. LOL :)

Starhugger

(in reply to dpf)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> OMITTAG and Self-closing tags
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts