Getting FP2003 to Validate

D

deacon

I have been trying to get a page to Validate as <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
using the W3C Markup Validation Service but it is hung up on a web bot
created by FP2003.

The bot is as follows:
<!--webbot bot="Navigation" S-Type="top"
S-Orientation="vertical" S-Rendering="html" B-Include-Home="TRUE"
B-Include-Up="FALSE" S-Btn-Nml="<A HREF="#URL#"
TARGET="#TARGET#">#LABEL#</A>" S-Btn-Sel="<U>#LABEL#</U>" S-Btn-Sep="<br>"
S-Bar="Underlined" -->

What do I have to change to get this to work? The Doc Type, the Page code
or both?
 
M

Mark Fitzpatrick

There's nothing you can do to get this one to validate. The validator will
just barf on everything that it doesn't find in the specified DTD, which
means all the FP specific bots and things. If it's really hanging and can't
get past that point, you may have to find another validator out there (there
are plenty freebies) as some of them do great work, but aren't that bright
when thrown a curveball. The FP code is wrapped in comment tags to help
avoid this, but some validators just don't take the hint and look inside the
comments anyways then get stuck.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
M

Murray

It's not the comments that are hanging the validator, it's the replaceable
values in the markup that follows. Once the page is published it will
validate just fine.
 
D

deacon

Thanks for your help...I also have one more FP generated tag that wont allow
the page to validate.
<BODY topmargin="0" leftmargin="0" bgcolor="#FFFFFF" text="#40475B"
link="#CFD4E6" vlink="#CFD4E6" alink="#CFD4E6">

The validator says that there is no topmargin attribute and that I should
replace this with CSS.
 
M

Murray

And the validator is correct. Topmargin and leftmargin are not valid,
although they are reconized by IE.

Link to an external stylesheet, or embed a stylesheet in your code (between
<head> and </head>) with the following style in it (embedded shown for
cut-n-paste convenience) (assuming you want zero margins) -

<style type="text/css">
<!--
body { margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;
padding:0; }
-->
</style>
(when the value is zero, units are not required)

you could also try

body { margin: 0 0 0 0; padding:0; }

or

body { margin: 0; padding:0; }

as a shorthand method.

This will take care of the margins in IE4+ and NN6. To get completely valid
code that works for all
browsers, change your stylesheet as shown below -

body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}
(this is called a CSS "hack" - the bottom line is not read by NN4x)
 
D

deacon

Thanks Murray.....it validates now. That page was already published however
with regard to the web bot that Mark replied to. What I did was to remove
the FP navigation that created the bot and used an includes page to set up
the navigation. Then put in the css code that you gave me and it all works
now. Thanks guys.
 
M

Murray

Yippee!

--
Murray
============

deacon said:
Thanks Murray.....it validates now. That page was already published
however
with regard to the web bot that Mark replied to. What I did was to remove
the FP navigation that created the bot and used an includes page to set up
the navigation. Then put in the css code that you gave me and it all
works
now. Thanks guys.
 

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

Top