This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > May 2007 > Doc Type validation for Frontpage 2003





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Doc Type validation for Frontpage 2003
Rainy

2007-05-01, 6:17 pm

I have Front Page 2003. I want to build a site using my own headers and
general design. What DTD statement or Doc Validation code to I use so that my
pages are compatible with most browsers?

Thanks,
Peg
Chris Leeds, MVP - FrontPage

2007-05-01, 6:17 pm

This is the one that Expression Web uses by default:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

notice that there's also an <html> tab below the doctype. if you use that
also, don't forget to close it (</html> ) just after your closing body tag.

HTH

--
Chris Leeds
Contact: http://chrisleeds.com/contact
Have you seen ContentSeed (www.contentseed.com)?
NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
"Rainy" <Rainy@discussions.microsoft.com> wrote in message
news:163D2D96-BE16-4A42-BE78-29EF8A742CF6@microsoft.com...
>I have Front Page 2003. I want to build a site using my own headers and
> general design. What DTD statement or Doc Validation code to I use so that
> my
> pages are compatible with most browsers?
>
> Thanks,
> Peg



Rainy

2007-05-01, 6:17 pm

Thank you for your response. Do I add this code on the Index page only for a
site? Is there a way to set this up as a Front Page 2003 Default, since most
of the sites I build I use my own design rather than using prebuilt
templates...
Thanks,

"Chris Leeds, MVP - FrontPage" wrote:

> This is the one that Expression Web uses by default:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> notice that there's also an <html> tab below the doctype. if you use that
> also, don't forget to close it (</html> ) just after your closing body tag.
>
> HTH
>
> --
> Chris Leeds
> Contact: http://chrisleeds.com/contact
> Have you seen ContentSeed (www.contentseed.com)?
> NOTE:
> This message was posted from an unmonitored email account.
> This is an unfortunate necessity due to high volumes of spam sent to email
> addresses in public newsgroups.
> Sorry for any inconvenience.
> "Rainy" <Rainy@discussions.microsoft.com> wrote in message
> news:163D2D96-BE16-4A42-BE78-29EF8A742CF6@microsoft.com...
>
>
>

Corey Bryant

2007-05-01, 10:16 pm

It needs to be on all pages that you want to possibly "validate" and IE 6
won't go into quirks mode:
http://www.timeforweb.com/frontpage...p?TID=4989&PN=2

--
Corey R. Bryant
http://www.coreybryant.org | http://www.loudcommerce.com


"Rainy" wrote:
[color=darkred]
> Thank you for your response. Do I add this code on the Index page only for a
> site? Is there a way to set this up as a Front Page 2003 Default, since most
> of the sites I build I use my own design rather than using prebuilt
> templates...
> Thanks,
>
> "Chris Leeds, MVP - FrontPage" wrote:
>
Murray

2007-05-02, 6:16 pm

Adding a doctype to a page will not ensure that the pages are compatible to
most browsers. All it will do is allow your page to be rendered by any
given browser in standards mode, as opposed to what you get when there is no
doctype - quirks mode. The presence of a valid and complete doctype will
not prevent *you* from using invalid or sub-optimal methods, which may still
result in pages that do not render reliably across the board.

In other words, adding a valid and complete doctype is a good start, but the
rest depends on your understanding of 'best practices' and of valid HTML
methods.

--
Murray
--------------
MVP FrontPage


"Rainy" <Rainy@discussions.microsoft.com> wrote in message
news:163D2D96-BE16-4A42-BE78-29EF8A742CF6@microsoft.com...
>I have Front Page 2003. I want to build a site using my own headers and
> general design. What DTD statement or Doc Validation code to I use so that
> my
> pages are compatible with most browsers?
>
> Thanks,
> Peg



Rainy

2007-05-02, 10:17 pm

Thanks for your reply. I'm not good with <html>. However, I do check my code
by viewing my finished pages in a variety of browsers. Is there something
else I should check?

"Murray" wrote:

> Adding a doctype to a page will not ensure that the pages are compatible to
> most browsers. All it will do is allow your page to be rendered by any
> given browser in standards mode, as opposed to what you get when there is no
> doctype - quirks mode. The presence of a valid and complete doctype will
> not prevent *you* from using invalid or sub-optimal methods, which may still
> result in pages that do not render reliably across the board.
>
> In other words, adding a valid and complete doctype is a good start, but the
> rest depends on your understanding of 'best practices' and of valid HTML
> methods.
>
> --
> Murray
> --------------
> MVP FrontPage
>
>
> "Rainy" <Rainy@discussions.microsoft.com> wrote in message
> news:163D2D96-BE16-4A42-BE78-29EF8A742CF6@microsoft.com...
>
>
>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews