• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XHTML validation

Khayman

I'm sorry Hal...
Political User
#1
I thought i'd give a wack of getting my site XHTML validated

I went to the validator page and i resolved most of the errors, of which there where hundreds (this is for the main page only atm) .

I need some help getting rid of the last few errors, i'm not sure how to resolve them and keep the page looking the same
 
#2
Code:
Line 11, column 6:  required attribute "type" not specified  (explain...).
  <style>
Add the attribute type="text/css" to the style tag. That should fix this error.

The rest of the errors are due to the mixing of content and style elements, which is a no-no in XHTML. Attributes like "bordercolor" or "background" should be placed in an external stylesheet. The HTML page then refers to the stylesheet using this code, which is placed under the head tag on your page:
Code:
<link rel="stylesheet" type="text/css" href="myStyle.css" title="Default" />
 
#3
While on the subject, is there a validator which I can run locally on my system? Like a downloadable app or something? Preferrably with explanations etc. I want to recode my website to be XHTML compatible and a downloadable ap would a tad quicker in validation I think.
 
#7
I remember when I did it on the previous version of my site, I am now working on a new site which is all complient, google spiderable, and degrades well with no Image and or no css support, am quite chuffed really :D
 

j79zlr

Glaanies script monkey
Political User
#9
Its not hard, and once you start doing it, you wont allow yourself to publish a page that isnt compliant.
 

Members online

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,018
Latest member
dixoncarry