/    Sign up×
Community /Pin to ProfileBookmark

HTML Validation

Hi all. I use Frontpage to generate HTML, but running it through an HTML Validation check, the first problem it comes up with is no document type declaration.

I read up on this and it made little sense. It blabs on about this and that, but how the hell am I supposed to know what and which Frontpage develops???

How important is validation anyway?

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJun 01.2004 — The best solution would very likely be to ditch Frontpage and use something like [url=http://www.chami.com/html-kit/]HTML-Kit[/url] and write the markup yourself. Frontpage is only going to cause you problems, especially in cases like this where it's mucking with your code or otherwise outputting invalid markup. As for that specific error, you're going to have to [url=http://www.alistapart.com/articles/doctype/][i]fix your site with the right DOCTYPE[/i][/url]. To answer your last question, however, you might consider having a read through [url=http://www.webdeveloper.com/forum/showthread.php?s=&threadid=27043]this thread[/url].
Copy linkTweet thisAlerts:
@ray326Jun 02.2004 — If Frontpage doesn't allow your to set your doctype then you need to get an editor that does. I'd second Fred's recommendation.
Copy linkTweet thisAlerts:
@LeeUJun 02.2004 — If you are moving to XHTML, you might read the review of a program I just look at: Hypertext Builder 2003

[URL]http://www.webreference.com/authoring/hypertext/[/URL]

Lee
Copy linkTweet thisAlerts:
@mbenderJun 02.2004 — I am not personally a fan of front page at all, but this is your editor of choice. I recommend searching Microsoft's website for details on setting a default document type.

http://office.microsoft.com/home/office.aspx?assetid=FX01085802&CTT=6&Origin=EC010963431033

This from the MSDN online may also be of some use to you.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_fp2003_ta/html/odc_fpWorkingWithDocType.asp

If you have no luck at this or don't want to do it you can always type it in manually or bookmark these pages.

Now you first need to decide what standard you are going to be coding to and then declare the appropriate document type.

[B]HTML Strict DTD[/B]

Use this when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS):

[COLOR=seagreen]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">[/COLOR]

[B]HTML Transitional DTD[/B]

The Transitional DTD includes presentation attributes and elements that W3C expects to move to a style sheet. Use this when you need to use HTML's presentational features because your readers don't have browsers that support Cascading Style Sheets (CSS):

[COLOR=seagreen]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">[/COLOR]

[B]Frameset DTD[/B]

The Frameset DTD should be used for documents with frames. The Frameset DTD is equal to the Transitional DTD except for the frameset element replaces the body element:

[COLOR=seagreen]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">[/COLOR]

XHTML

XHTML 1.0 specifies three XML document types: Strict, Transitional, and Frameset.

[B]XHTML Strict DTD[/B]

Use this DTD when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS):

[COLOR=seagreen]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/COLOR]

[B]XHTML Transitional DTD[/B]

Use this DTD when you need to use XHTML's presentational features because your readers don't have browsers that support Cascading Style Sheets (CSS):

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

[B]XHTML Frameset DTD[/B]

Use this DTD when you want to use frames!

[COLOR=seagreen]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">[/COLOR]


hopefully this will help you a bit
×

Success!

Help @SuzanneB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...