COnverting To XHTML



First of all, don't stress! This can be easy, if you just read this tutorial, and stay calm!

Let's go over a few things about XHTML first.
The biggest thing about XHTML is that everything needs to be neat and clean! This means closing all your tags! If you open a tag, for example you want to make your font in italics, then you'll need to close it at the end of your text as well.

Example:
<i> Hello, this is my italic text! Now i'm going to close my italic tag! </i>

See how I did that? After I was done having italic text, I added </i> "i" being the code for italics. A closing tag will always have a backslash!

Now, let's say you have an image code going on, and w3 is saying there is an error in your code. To make it valid, you'll need to close your image tag.

Example:
<img src="URL_OF_CUTE_PIC.jpg" alt="Cute Pic" />

See how I did this at the end? />? That is what makes your image tag closed. This works on most things, such as horizontal rules, the <br /> (page break) code, and anchor links.


Alternative Text in Image Code
Always remember that image codes MUST have an "alt" or alternative text. This is what is shown when someone comes to your site, and cant see the image. Also, when you hover over the image, the alternative text will show. Your coding will not be valid unless you put an alt. It doesn't have to have anything in it, example being: alt="" ; but you must have it!


No Borders!
Don't put border="0" in your image tags anymore! And you'll have to take them out of all your affiliates button links. From now on, you need to set the image attributes in your CSS! Here's what you put in your .css stylesheet page to get rid of border:

img {border: none;} That should fix all the border problems!


Using the break code:
Never use <br> anymore! Always use this code to be valid: <br />! That's now the proper way to do it, because you have inserted the closing piece into your page break code.





So, in conclusion.. It's really not that hard to convert. You just need to remember to close all your tags, and keep things tidy! If you have any questions, comments, or additions concerning this tutorial then please feel free to send me an email! admin at karlakay.net




eXTReMe Tracker