XHTML: HowTo
You need to convert your HTML pages to XHTML so that your pages can be read by the recently developed browsers. Your website needs to be compatible with the browsers. Converting your HTML website to XHTML does not change the fact that your site uses HTML. You should know that HTML is the foundation for all website. What this conversion does is to make your website competent and easily accessible to the upgrades that exist in the area of web design and development.
So, here is
How To Convert HTML to XHTML
To convert a Website from HTML to XHTML, you should be familiar with the XHTML syntax rules. After you understand that, you need to take the following steps (in the order listed below):
Add a DOCTYPE code to your Website
Add the following DOCTYPE to the first line of every page of your Website:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Tip: Your pages must have a DOCTYPE declaration if you want them to validate as correct XHTML.
Change all Uppercase to Lowercase Tags
Conduct a general "find-and-replace" function to replace all uppercase tags with lowercase tags. You should do the same was done for attribute names also.
Quote All Attribute Values
Every page on your Website should be checked to see that attribute values are quoted.
Replace all Empty Tags: <hr> , <br> and <img>
Empty tags are not allowed in XHTML. The <hr> and <br> tags should be replaced with <hr /> and <br />.
A general "find-and-replace" function should be executed to swap the tags.
IMPORTANT Compatibility Note:
To make your XHTML compatible with today’s browsers, you should add an extra space before the "/" symbol.
Validate your Website
Finally, all your web pages should validated against the official W3C DTD Validator:
Finally, any error you encounter should be edited manually. The most common error was missing </li> tags in lists.
This is an upgrade you can perform as soon as possible. If you can’t do this yourself, refer this page to your website designer/developer so that he/she can help you. This will make your website compatible with web browsers. You can also share this post to as many people as you want using the sharing services below. Your comments, questions and contribution are welcomed.
Love you still
If you like this information, share it with your friends on Facebook, Twitter et all. Bookmark it on Digg, StumbleUpon et all. They will thank you for your action. YOu can use the sharing medium below. Also, don't forget to make your comments on this information. Let me know your views on this information and how it is of benefit to you. Thanks.Popularity: 3% [?]
Related posts:
- Does Your Blog Lack Traffic? Are you constantly banging your head in frustration on not receiving all the internet traffic you would like to...
Related posts brought to you by Yet Another Related Posts Plugin.
























































