Forum Moderators: mack

Message Too Old, No Replies

Validation and Doctype?

What to use in conjunction with Frontpage

         

bid4abook

10:22 am on Dec 23, 2005 (gmt 0)

10+ Year Member



Hi!
I am in the process of rehashing my site (again!). I am using Frontpage 2003, DHTML etc. However, I noticed when validating at w3c that there is no doctype. I inserted <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> and some 113 (initially) errors appeared (down to some 41 at present). A two pronged question: Is there a standard doctype that I should be using with Frontpage 03 and what is the more future doctype for 2006, UTF strict XHTML etc?

Any further reading you can point me to would be appreciated.

Regards b4b

stef25

3:27 pm on Dec 23, 2005 (gmt 0)

10+ Year Member



xhtml transitional doctype is the best IMO. But, if you prefer html over xhtml then you should go with a corresponding html doctype

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

id advise against using FP. if you want to use it, it should (damn well!) be able to insert the correct doctype itself. if not, you can perhaps configure it to do so.

once you've implemented the doctype, start validating your code and fixing errors

Corey Bryant

5:21 pm on Dec 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is a list of valid DOCTYPEs [w3.org] to choose from.

Usually

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
or
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
will be fine. Frontpage will not write everything for you in web standards, so you will need to learn some HTML to fix it.

To see how to add the DOCTYPE to your Frontpage, check out DOCTYPE in FP2003? [timeforweb.com]

-Corey

bid4abook

9:53 am on Dec 27, 2005 (gmt 0)

10+ Year Member



Stef & Corey, Many thanks for that. Regards bid4book.