Click to See Complete Forum and Search --> : Need An Explaination Please


Launchnet
03-16-2006, 09:34 PM
I have as my home page 2 files set in a frame. The left frame is a stationary menu and the right page is my home page. All other pages and links out are displayed on the right side frame.

I went to review my code for proper DocType and I see the following.

Can someone explain in laymens terms what this does? See below example:



<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<link rel="File-List" href="mainmenubody_files/filelist.xml">


Do I still need a doc type? The site runs exactly as I want it to in IE, but I would like to make it W3 compliant if possible.

My site: www.openoursite.com

Thanks
Matt

ray326
03-16-2006, 09:58 PM
Here's where you need to start if you don't have anything but FP. Yes you need a doctype.

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.openoursite.com%2Fmainmenubody.htm

You can get HTML Tidy from the W3C and it will strip out all the extaneous MS verbage. Better yet you can dump FP, get HTML-kit and have Tidy built right in.

drhowarddrfine
03-17-2006, 06:38 AM
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="urn:schemas-microsoft-comfficeffice" xmlns="http://www.w3.org/TR/REC-html40">This is the normal html tag with the xmlns attribute indicating the XML NameSpace for, in part, Microsoft Office use. It's crap and only in there if you are using Office and your web site together. I hope you are not. Delete this whole line and replace it with <html> only.

As ray said, you do need a doctype. Use html4 strict from my link below. Make sure you put it in as the very first line of the document.

<meta http-equiv="Content-Language" content="en-us">Specifies English content.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">More Microsoft crap. Change the charset to charset=utf-8
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">Why would anyone care what you used to generate this? Don't embarrass yourself by telling anyone you used FrontPage. Delete both lines.

<link rel="File-List" href="mainmenubody_files/filelist.xml">Well, now that I've gotten here, I question what I said in the first paragraph about deleting the Office stuff. If removing the xmlns stuff above screws up your page, you may need to leave this in because your page, apparently, uses this .xml file for something. Without a link we can't tell. So delete it and test.