| Web Design Lobby Forum for general web design issues not specific to scripting or graphics. |
10-14-2003, 03:18 PM
|
#1 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 37
Latest Blog: None
|
Does anybody have a site that validates properly??
I'm just wondering if anyone here has a site that validates according to W3C standards? It doesn't seem to be a popular topic of discussion around here, which is surprising for a group of webmasters. I've also ran checks on several of the sites posted, and not one has validated properly. I know it's easy to get caught up in the design and aesthetics, but what about complying to web standards? Thoughts?
If you do have a site that validates, please post the link.
Check your markup here: http://validator.w3.org/
Check your CSS here: http://jigsaw.w3.org/css-validator/validator-uri.html
|
|
|
10-14-2003, 03:26 PM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Central Ohio (Dublin)
Posts: 1,519
Latest Blog: None
|
It's such a pain to try to get pages to vaildate, as long as Mozilla renders the page the way i wanted it to it's close enough to being vaild for me.
|
|
|
10-14-2003, 03:31 PM
|
#3 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 37
Latest Blog: None
|
Quote:
|
Originally Posted by Thanol
It's such a pain to try to get pages to vaildate, as long as Mozilla renders the page the way i wanted it to it's close enough to being vaild for me.
|
Yeah, I hear that. What do you code with?
|
|
|
10-14-2003, 03:40 PM
|
#4 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Central Ohio (Dublin)
Posts: 1,519
Latest Blog: None
|
I code by hand. Usually I just copy and paste peices of code from my older websites to make a new one.
|
|
|
10-14-2003, 03:40 PM
|
#5 (permalink)
|
|
JohnScott's Lovechild
Join Date: 10-12-03
Posts: 10,023
Latest Blog: None
|
xHTML 1.1 and CSS2 for me. (although not done on BPH, since I have better things to worry about at the moment  ).
|
|
|
10-14-2003, 04:00 PM
|
#6 (permalink)
|
|
Moderator
Join Date: 10-13-03
Location: UK
Posts: 2,819
Latest Blog: None
|
Ah I have a new friend here!
I noticed the lack of talk about standards and validation.
The W3C estimate 99% of all web pages are invalid.
The reality is, you do scarafice i little bit of functionality if you only have valid code - most obvious is that new web standard methods to recreate aesthetic effects don't work in old browsers; while you can have good looking designs implimented with standards code that degrades gracefully, degradation might not be wanted if a signifacnt part of your user base use old browsers.
In other words, I find myself adding non-valid attributes to helf the aesthetics work in old, and sometimes not so old, browsers. NN4 is probably the biggest problem.
I think the best reason to give your friends to use valid code, is future proofing. For example, coding in XHTML, means that all your pages will be compatible with future viewing applications (including hand-held browsers, mobiles, text-readers, braille printers, and future releases of desktop web browsers).
Another future proofing aspect is maintainance. - You and others will have a much easier time (and shorter time) updating editing and working with the valid documents you create.
I think we need to gather resources on why we should use web standards and valid code, and how to do so. Then we should collate the information into an artical for the rest of the site users.
|
|
|
10-14-2003, 04:03 PM
|
#7 (permalink)
|
|
Moderator
Join Date: 10-13-03
Location: UK
Posts: 2,819
Latest Blog: None
|
p.s. I promise to make my next site valid and will post it here!
|
|
|
10-14-2003, 04:04 PM
|
#8 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
Latest Blog: None
|
It keeps saying that there is no bordercolor attribute and that's the only thing that's wrong. 
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
|
|
|
10-14-2003, 04:10 PM
|
#9 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 37
Latest Blog: None
|
@Thanol: I don't think I could hand code a valid XHTML document either.
@Brian: Very excellent. Which site of yours is that? Could you post the link?
@LJ: I agree with you 100%. The hurdle is rethinking how we code in order to achieve similar results. Did you see the articles I posted in the Cross Browser Compatibility thread? I think you'll enjoy the one about coding for Netscape.
http://www.internet-marketing-resear...opic.php?t=244
|
|
|
10-14-2003, 04:10 PM
|
#10 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Central Ohio (Dublin)
Posts: 1,519
Latest Blog: None
|
You have to use CSS to make a border color OR
make 2 tables and make one the color of the border add 1 pixel of cellpadding then put in the other table but make it white or whatever you want and voila it looks exactly like you changed the border color.
Example:
[code:1:b4ed5ec2c9]
<table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000" align="center">
<tr valign="top"><td width="100%">
<table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#ffffff" align="center">
<tr valign="top">
<td>
Hello
</td></tr>
</table>
</td></tr>
</table>
[/code:1:b4ed5ec2c9]
|
|
|
10-14-2003, 04:11 PM
|
#11 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
Latest Blog: None
|
How would I use CSS, it sounds simpler. 
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
|
|
|
10-14-2003, 04:13 PM
|
#12 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 37
Latest Blog: None
|
Quote:
|
Originally Posted by Sesshoumaru-Sama
It keeps saying that there is no bordercolor attribute and that's the only thing that's wrong. 
|
Why don't you post the implicated line(s) of code, and exactly what the W3C output says.
|
|
|
10-14-2003, 04:15 PM
|
#13 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 37
Latest Blog: None
|
Quote:
|
Originally Posted by Sesshoumaru-Sama
How would I use CSS, it sounds simpler. 
|
Just point the validator to your CSS file.
|
|
|
10-14-2003, 04:15 PM
|
#14 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
Latest Blog: None
|
Quote:
Line 15, column 30: there is no attribute "BORDERCOLOR" (explain...).
<table border="0" bordercolor="#878787" width="770" cellspacing="6" cellpadding=
|
That's it...
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
|
|
|
10-14-2003, 04:24 PM
|
#15 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Central Ohio (Dublin)
Posts: 1,519
Latest Blog: None
|
Use this code, edit the parts you want to change, and put it into your CSS file or area:
Quote:
|
.one { border-color: #335a77; border-style: solid; border-width: 2px; }
|
Do not edit the parts in RED or else this might not work!
THEN add class="one" to your table tag like so:
It works in Mozilla so I'm pretty sure it'll vaildate.
|
|
|
10-14-2003, 04:32 PM
|
#16 (permalink)
|
|
Moderator
Join Date: 10-13-03
Location: UK
Posts: 2,819
Latest Blog: None
|
Using nested tables to create a border effect is naughty!
I think there are two ways to approach web standards:
1) Validate all your code successfully.
2) Conform to the spirit of it.
It's easy to create valid code that is still full of stupid hacks ans rubbish like nested tables. But you'll actually be using tables for non-standard purposes and making your code harder to maintain, as well as making your page larger to download compared to using CSS, and making it less accessible.
The best way is to make your page accessible, and "bobby aproved" if possible, as you will have pages that are easy to use for "less-abled" users, and easier to use for "more-abled" users, and POSSIBLE for blind users and users with text-based browsers to use your sites.
|
|
|
10-14-2003, 04:36 PM
|
#17 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
Latest Blog: None
|
Um... How do I make the rows and stuff have their dividing lines now? (with CSS)
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
|
|
|
10-14-2003, 04:42 PM
|
#18 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Central Ohio (Dublin)
Posts: 1,519
Latest Blog: None
|
Add the other commands that you want into the { }'s and seperate them with semi-colons.
Which site are you talking about it would be so much easier to explain if I knew?
|
|
|
10-14-2003, 04:43 PM
|
#19 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
Latest Blog: None
|
http://theillest.dwcnetwork.com
You'll notice that I've gotten a few of the changes done.  But I want the normal lines between the choices on the sidebars.
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
|
|
|
10-14-2003, 04:50 PM
|
#20 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Central Ohio (Dublin)
Posts: 1,519
Latest Blog: None
| |