Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2005, 07:40 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default W3C Validation help!!

After few arguments with the code and W3C validation.. we (me and the screen/W3C) got to a stall mate situation.

There's no way for me to change my code to satisfy that validation; this is the code we're having a disagreement about:

<frameset frameborder=0 border=0 framespacing=0 rows="90,*">

Looks perfectly healthy to me but W3C return:
there is no attribute "FRAMEBORDER"
there is no attribute "BORDER"
there is no attribute "FRAMESPACING"

Well.. sorry but I need those attributes, especialy border=0 otherwise I get a border and it looks crap..

If anyone got a clue on how to satify both W3C and myself, I would be greatfull :)
 
Old June 3rd, 2005, 04:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

border and framespacing are MS extensions

frameborder is HTML 4

what doctype are you using?
 
Old June 3rd, 2005, 04:55 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html><head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

The code is working perfectly fine.. on Netscape - MSIE - Firefox
 
Old June 3rd, 2005, 09:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

So, make a choice than. You can't have it both ways.

(o<
//\ =^..^=
 
Old June 3rd, 2005, 04:57 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

??
 
Old June 3rd, 2005, 05:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Either stick with the spec and accept that it doesn't look as you would like. Or use the proprietary markup that works and accept that you can't have a the fancy yellow button. :D

(o<
//\ =^..^=
 
Old March 11th, 2006, 05:22 PM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe the answer comes a bit late, but to validate your document you need to use a custom DTD.
Find out how to make one here:<br>
<A HREF="http://www.onemillionpound.net/Tools/Links/link_001.html">http://www.onemillionpound.net/Tools/Links/link_001.html</A>

J Garrido-Bartha
 
Old March 11th, 2006, 05:24 PM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry! Wrong link. Try this:
http://www.onemillionpound.net/Tools.../link_001.html

J Garrido-Bartha
 
Old April 3rd, 2006, 02:04 PM
Authorized User
 
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The above link does not appear to work. If you strip it down to the .net, it comes up in Spanish or at least a language that is foriegn to me.






Similar Threads
Thread Thread Starter Forum Replies Last Post
W3C XHTML Validation on ASP:Label control rit01 ASP.NET 2.0 Basics 6 June 26th, 2006 12:30 PM
ASP/ASPX W3C validation URL OldCoder HTML Code Clinic 4 April 8th, 2006 11:58 PM
W3C Standard for CSS Scrollbar? socoolbrewster CSS Cascading Style Sheets 1 June 2nd, 2005 11:01 AM
W3C Validation of FORM steamydave CSS Cascading Style Sheets 2 April 27th, 2005 10:39 AM
Regularexpression vs w3c vohra_vikas2004 General .NET 0 November 19th, 2004 09:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.