Doc Type validation for Frontpage 2003

R

Rainy

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
 
C

Chris Leeds, MVP - FrontPage

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.
 
R

Rainy

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,
 
M

Murray

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.
 
R

Rainy

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?
 

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