|
rubyaim -> RE: Question About DocTypes (1/21/2007 16:41:40)
|
Bruce, a strict doctype will force the separation of markup and presentation and not allow redundant tags, transitional is more forgiving as it is meant for those making the transition from older or proprietary markup to standards compliant markup. If you want a doctype every time you start a new page in FrontPage you can change normal.htm (below assumes FP2003) > Open FrontPage > File > Open > Browse to C: \ Program Files \ Microsoft Office \ Templates \ 1033 \ PAGES11 \ normal.tem \ > Put in the doctype you want as a default. > Save the file Try not to get too frustrated, in the long run using a strict doc type and really getting into the code is worthwhile. There is also no harm in using a transitional doctype and then working towards strict. When you validate a page and get errors, you can often search for the actual error message to see what is wrong, if you are using html tidy it will often offer solutions (though don't actually trust the tick or cross you see in tidy, always use the validator). From Microsoft (Working with HTML DOCTYPE Declarations in FrontPage) : quote:
Using DOCTYPE Declarations in FrontPage As with most modern Web development tools, FrontPage may use design-time proprietary code and attributes for HTML tags that does not validate according to the standards of the W3C. If you use any design-time tools in FrontPage, your pages may not validate when submitted to a validator. If you want to use DOCTYPE declarations in your FrontPage Web pages, you should either avoid using FrontPage design-time tools that insert custom markup or use the Optimize HTML feature (Tools menu) in FrontPage to remove most or all FrontPage design-time markup. This allows you to run the pages through a validator without receiving errors on FrontPage markup code. For this reason, FrontPage does not include DOCTYPE declarations in new pages by default. You can add DOCTYPE declarations to your Web pages in three ways: You can paste the DOCTYPE declaration in Code view; you can insert a code snippet; or you can modify the default template that FrontPage uses to create new pages.
|
|
|
|