This topic has been closed for further discussion.
Member
From: San Jose, Ca
Registered: 2009-05-07
Posts: 34
I've been thanked 1 times.
Offline
The code in my index page starts like this:
<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>
Yet, a site called SEOBugs says my site doesn't have a valid code for the search engines to crawl my website correctly. Now, because of that, I've looked at other peoples website code, and found that most are using:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
Which one should I use???? When I tried the other code on my site, replacing everything above <head> with the other code, all my content became largely gapped, so I switched back to my pages original code. I use FrontPage by the way if that makes a difference.
Help me fix this. Thanks in advance to all that respond.
"Just trying to make things work" http://www.services4you.biz
Administrator
From: Maidstone, Kent, UK
Registered: 2009-03-27
Posts: 671
I've been thanked 27 times.
Offline
w3 is the web standards code so you should use it really, as for SE's not crawling you current code im not sure as have never used it.
To change to w3 code you will need to edit styles etc in the html code and/or css if you have one.
Clan Game Servers and all you gaming needs! | URL Shortener - Shrink your URL in seconds!
Clan Hosting dedicated servers and much more! | Web Design, Netfox CMS, SEO and much more!
Administrator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 3162
I've been thanked 101 times.
Offline
If you used a microsoft product, or some fancy bit of software to create your site then you should really use the Document Type Definition (DTD) that it supplied.
Changing the doc type and not the rest of the code has the potential to break the apperance of your site and prevent it from being validated as what sort of code it is.
Your current doc type is saying your site is html 4.0 and that there maybe some strange code in the name spaces v and o. This is fine, even from an SE point of view
Without further inspection, i would suggest you keep to the original.
If you code by hand/want to code by hand then i would suggest learning the differences between html 4 and xHTML. Then code in xHTML and change the doc type to the second one
| Never |


