Jump to content

Invalid Markup Validation for border="0"


RickyOswaldIOW
 Share

Recommended Posts

Greetings. I have recently been studying the css/xhtml tutorials at w3schools (which are excellent). I've learnt a lot an bought all my html code up to date but I am having one problem with my frameset border attribute:

<frameset border="0" cols="15%,*,20%">

I am using the xhtml validator on w3schools and it is underlining the first double quote in the border attribute. The page is at http://www.philoswald.f2s.com/salsabasic/index.htmlThe full code for the page is thus:

<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Frameset//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta name="author" content="Ricky Oswald" /><meta name="revised" content="Ricky Oswald" /><meta name="generator" content="Microsoft Windows XP Notepad" /><meta name="description" content="Wight Hot Salsa! Salsa and Latin Dance lessons on the Isle of Wight." /><meta name="keywords" content="Salsa, Isle, Wight, Latin, Dance, Matt, Kellet" /><link rel="stylesheet" type="text/css" href="css/style.css" /><title>Wight Hot Salsa!</title></head><frameset border="0" cols="15%,*,20%">	<frame src="frmMenu.html" name="menu" />	<frame src="frmMain.html" name="main" /></frameset></html>

P.S. If you're interested in the state of my code prior to reading the tutorials, look at http://www.philoswald.f2s.com/salsa/www/The code is in an awful state. Although I did use a WYSIWYG editor (dreamweaver, dunno what version) - but it goes to show just how good the tutorials are.

Link to comment
Share on other sites

Well, doesn't the page look the same without it? I mean, wouldn't applying border="0" to both frames have the same effect?

Link to comment
Share on other sites

Hm interesting. I acutally got the code from the HTML tutorial, so there is some incorrect syntax there - or at least some syntax that is not xhtml compliant! I shall switch it over though and see if it works out okay. Thanks for the quick response, I did do a google search and a search on the forum but could not find anything relating to this.Thanks again :) I'll let you know how it goes (after I eat 8p noodles!)

Link to comment
Share on other sites

Works perfectly! To summarise, I changed

<frameset border="0" cols="15%,*,20%">	<frame src="frmMenu.html" name="menu" />	<frame src="frmMain.html" name="main" /></frameset>

To

<frameset cols="15%,*,20%">	<frame src="frmMenu.html" name="menu" frameborder="0" />	<frame src="frmMain.html" name="main" frameborder="0" /></frameset>

The original was not xhtml compliant but the latter is.Thanks again for the quick replies :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...