Help - Search - Members - Calendar
Full Version: coding a valid xhtml website
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
bigtrey90
I am trying to put a RSS feed on my website, and I can't because my site isn't a valid xhtml site. Any tips on how to code one correctly?

http://www.j3mag.uniqsole.com
fixtatik
keep an eye on validator.w3.org to show your errors. the biggest problem you're having is closing tags. with XHTML, some tags need to be closed within themselves, like <link>, <br> and <input>

they should look like this:
CODE
<link href="URL" rel="" />
<br />
<input type="text" />

fixes those will clear up many errors.
newkidontheblock
I recommend you using the W3C Validator to check the error. If you are using Firefox the you can download the HTML Validator Plugin, when you view source you'll see all your errors.

^ fixtatik beat me too it.
bigtrey90
thanks will do
bigtrey90
Okay I am having a hard time fixing the errors. Here are what they are:

http://validator.w3.org/check?uri=http%3A%...ine&group=0
Mickey
When you use <img> tags, make sure you add this before the >:

CODE
alt=""

When you use <br> tags, make sure you add a slash (/) before the >. When you put up lists (using <li> tags), make sure you start and end with unordered list tags (<ul>). Start out with those suggestions.
mipadi
Sounds like you really just want to mark it up as HTML.

XHTML is only really necessary under strict circumstances, and 99.9% of the time, you're better off using HTML.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.