Instead of continuing in the tread I started about CSS and aging delay, I decided to start
a new one for my new questions. I got some helpful suggestions there which I am still studying.
There are so many questions as I am overhauling my site for CSS. While I am making the changes,
I wonder about changing to xhtml. Many changes seem simple enough such as </p>.
Will xhtml change my URL? If so, will this cause an aging delay?
I already have a automatic 301 redirect from my old site http://www.gate.net/~labooks to my new site which was uploaded 11-01-05.
http://www.learningbooks.net
It seems awkward if I will need to put a redirect on the new URL so it will go to the xhtml page.
Many sites still link to the first URL. I've contacted many webmasters about updating the link. A few have done it.
Is this the doc type I should use?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
I'll submit my site for review after I have done the overhaul. I just have these two questions
at the moment for the board. I'm trying to learn as much as possible from the resources which were given to me in the other thread.
Thanks.
Member
From: San Antonio, TX
Registered: 2006-08-07
Posts: 516
I've been thanked 27 times.
Offline
Switching to xhtml will not change your URL in any way. It also will not affect the way Google et al perceive the age of your page. In fact if it has any affect on the SEs perceptions of your page at all it will be positive (i.e. the page is being updated).
The doctype declaration and <html> tag for xhtml transitional should look like this:
Code: html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
aside from the doctype declaration, make sure all your tags are lowercase, and all your attributes quoted. Most changes from html to xhtml are centered around good clean coding structure. All tags opened should be closed as well. Those tags that don't get a close tag in html get closed a different way in xhtml. In this case you add a slash(/) before the closing bracket, so <br> becomes <br />
THanks for your reply.
I'm glad to know the URL of my homepage would not change.
Do you also mean that one of my pages would be changed for example from
bookstore.html to bookstore.xhtml?
Please send a reference for understanding or
please explain the meanings of these parts of the doc type.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
I think I understand the first part of the code.
Member
From: San Antonio, TX
Registered: 2006-08-07
Posts: 516
I've been thanked 27 times.
Offline
First off, you would keep the extension the same. If you are using .html (or .htm), you would stay with that. Every thing that makes an xhtml file xhtml is inside the file.
The first 2 lines are the doctype declaration. They can actually be joined as one line (with a space between the two sets of quotes) or in 2 lines like I did there.
In the first set of quotes "-//W3C//DTD XHTML 1.0 Transitional//EN" you have 4 parts. The minus sign at the beginning means the organization in the next part is not an International Standards organization. The second part (W3C) is the organization which maintains the document type definition. The third part is the type and label; DTD stands for Document Type Declaration. The last part is the language of the markup (not the page content).
In the second set of quotes, is the location of the DTD.
The third line is the normal <html> tag with a twist. You are also pointing to the xml Namespace. This defines the xml markup language. the last 2 elements define the xml markup language and content language.
Moderator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 2860
I've been thanked 85 times.
Offline
URLs are like file names. once the file name is in an SEs index they know about it regardless of what changes are made to the content
all pages are basically plain text.
call them whatever you want, eg
.htm
.html
.php
.asp
.sex
.love
(yes, i've seen sites do the last two to increase keywords in url)
and configure your webserver to treat the pages how you want (easy in apache, use .htaccess - make apache send .sex files through the php parser, for example)
| Never |


