validation of SiteBuilder website

Post here if your message doesn't fit into another forum but is still about web development. Includes site critiques, web hosting and server questions, helpful software and resources, and more.
Post Reply
chopfine
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Wed Mar 14, 2007 9:52 pm
Contact:

validation of SiteBuilder website

Post by chopfine » Thu Mar 15, 2007 11:48 am

I am having problems getting my website validated. I used the program, SiteBuilder, which though easy, does not seem to be particularly effective. I don't seem to have a document type declaration at the beginning, nor do I have the correct encoding.

Inasmuch as I am very new to all of this and somewhat ignorant of the terminology, is it possible to correct these problems on my own, or do I need a professional? I don't even know where to go to find someone with answers.

My website index page is: http://www.babythymes.com/index

Any assistance would be greatfully accepted.
Chop

User avatar
CaryD
Rank II - Novice
Rank II - Novice
Posts: 46
Joined: Sun Oct 01, 2006 2:18 pm
Location: CA

Post by CaryD » Thu Mar 15, 2007 5:37 pm

For the doctype you need to put this as the very first line of your html:

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

If this line is missing or preceded by any extra characters or spaces or blank lines, then your page will throw IE6 into quirks mode. You don't want that.

This is the doctype declaration for HTML Transitional. I suggest using this in your case because your page is already written as HTML rather than XHTML and you're using some deprecated elements such as the font tag which can only be used with transitional doctypes as opposed to strict doctypes.

You can also insert the doctype declaration by using the CSE menu "Tags > Declarations" and then selecting the proper one from the list.

As for the matter of encoding, that depends on how you saved the page. You basically use a meta tag to say which character encoding was used when saving the page and therefore must be used to correctly "read" the file in which the page was saved. There's a good chance it was either "iso-8859-1" or "UTF-8".

So, you would put one of the following lines right after the <head> tag in your html.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Or

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

You'll need to find out which one, if either, SiteBuilder uses. According to Firefox's page info, it looks like your server is saying it's iso-8859-1.

Post Reply