XHTML validation

Khayman

I'm sorry Hal...
Political Access
Joined
6 Jan 2002
Messages
5,518
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
 

NetRyder

Tech Junkie
Joined
19 Apr 2002
Messages
13,256
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" />
 

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
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.
 

Khayman

I'm sorry Hal...
Political Access
Joined
6 Jan 2002
Messages
5,518
Glaanieboy said:
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.
http://www.w3.org/People/Raggett/tidy/
 

Khayman

I'm sorry Hal...
Political Access
Joined
6 Jan 2002
Messages
5,518
Got all the errors now, going though all the sub pages... boring :)
 

Geffy

OSNN Veteran Addict
Joined
18 Mar 2002
Messages
7,805
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
 

X-Istence

*
Political Access
Joined
5 Dec 2001
Messages
6,498
i code to the spec. Anything that i dont write according to the spec i fix, and i dont make the same mistake again.
 

j79zlr

Glaanies script monkey
Political Access
Joined
16 Feb 2003
Messages
2,725
Its not hard, and once you start doing it, you wont allow yourself to publish a page that isnt compliant.
 

Members online

No members online now.

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
Perris Calderon wrote on Electronic Punk's profile.
EP, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there!

Forum statistics

Threads
61,997
Messages
673,400
Members
5,586
Latest member
PseudoKiller