...

View Full Version : W3C XHTML Validation Help



Dyolf
07-16-2007, 03:13 PM
I've done all I can think of, but to me, this validation report makes no sense. It says that speech marks ( " ) aren't correct, but they need to be there! :(

The Report is here (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jrparsons.co.uk%2Ftest%2Findex.htm)

VIPStephan
07-16-2007, 03:25 PM
Speech marks? There are a lot of errors but none of them related to speech marks. I guess youíll fix some of them by removing the slash from the opening <html> tag which is effectively closing the document before it started (resulting in the other errors).

And, donít mean to be rude but are you serious about the webdesign thing? If so then I would strongly suggest you recode your website from scratch using clean and semantic HTML (http://www.boagworld.com/archives/2005/11/semantic_code_what_why_how.html) (strict doctype), and scrapping this ten year old technique of table layouts. This is considered very amateurish in these days and wonít bring you a lot of jobs by people that care (and they do!).

Dyolf
07-16-2007, 03:36 PM
Gimme a break, I've only just finished a web design course...

What about this? <table border="1" height="550"

That red bit is where the error is supposed to be...

ahallicks
07-16-2007, 03:52 PM
It is saying that the attribute 'height' is not valid. You need to separate style from content by using a stylesheet. Do you know anything about CSS? If not then I seriously suggest you find out as many resources as you can about CSS and how to style/build a correct and semantic HTML page. For example, the above example you would give you table an id, such as #mytable and then style it as follows:



<style type="text/css">

#mytable {
height: 500px;
width: 760px;
text-align: center;
border: 1px solid #CC0000;
}

</style>


And HTML:


<table id="mytable" cellpadding="0">


</table>


That goes in your head section of the page (or an external stylesheet later on).

Dyolf
07-16-2007, 04:50 PM
It is saying that the attribute 'height' is not valid. You need to separate style from content by using a stylesheet. Do you know anything about CSS? If not then I seriously suggest you find out as many resources as you can about CSS and how to style/build a correct and semantic HTML page. For example, the above example you would give you table an id, such as #mytable and then style it as follows:



<style type="text/css">

#mytable {
height: 500px;
width: 760px;
text-align: center;
border: 1px solid #CC0000;
}

</style>


And HTML:


<table id="mytable" cellpadding="0">


</table>


That goes in your head section of the page (or an external stylesheet later on).

Thanks, I know a bit about CSS, mostly about hyperlinks and text decoration. I'll try that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum