Website Designers R Us - Home
Basics of XHTML

The DOCTYPE
To make sure your browser knows to read the xhtml coding, use the following code at the beggining of your source:

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


Some XHTML Rules:

First, and most important rule is to always close your tags.

Code:
<body>
<center>
<b>This is a great page</b>
</body>


No.

Code:
<body>
<center>
<b>This is an even better page</b>
</center>
</body>


Yes

Another rule is that you can't use capitals with any part of the tags, or tag astrabutes.

Code:
<MARQUEE>No no no!</MARQUEE>


No.

Code:
<marquee>Yes yes yes!</marquee>


Yes.

Next rule is that with only one opening tag (br, img, etc...) use a /> to close it.

Code:
<img src="images/picture.gif">
<br>

 
No.

Code:
<img src="images/picture.gif" />
<br />


Yes.

Next, is to make sure you use "=" and " symbols.

Code:
<img src="www.site.com/picture.gif" height 100 width 100>


No,

Code:
<img src="www.site.com/picture.gif" height="100" width="100" />


These are the basic rules of XHTML that you should follow.

These are all that I that I will mention. I will post a second tutorial containing more rules and some basic tags. Good luck and have fun.

Return to Listing

Website Designer R Us is the right company to get your job done professionally and cost effectively. We've seen the good, the bad, and the ugly, and we are here to help you by recommending the services that match your needs based on our knowledge of other website designers and web design companies whom can perform the type work you are needing.
 Home          ::             About Us          ::             Support            ::             Services            ::             Link Partners          ::             Contact

Copyright © 2006-2007 Website Designers R Us, a DOT Specialist Company. All rights reserved.