 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Milan
Joined: 30 Apr 2005 Posts: 2
|
Posted: Sat Apr 30, 2005 8:08 am Frame tutorial not valid HTML? |
|
|
|
Hi, I´m new here.
I just looked at the Frame tutorial on this site and tried to check one example (http://www.htmlcodetutorial.com/frames/nb_frameset.html) with a Markup Validation Service and it tells me that this example is not valid HTML. Link
Can somebody tell me why?
Thanks in advance.
Greetings
-Milan |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Sat Apr 30, 2005 9:39 am |
|
|
|
The tutorial is wrong.
Frames are fussy, especially when validating.
Here is a valid frameset
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*,*">
<noframes>
<body>Your browser does not handle frames!</body>
</noframes>
<frame src="pagea.htm" name="topFrame" >
<frame src="pageb.htm" name="mainFrame">
</frameset>
</html> |
Notice that the DOCTYPE is for Frameset.
Attributes such as Frameborder, Framespacing etc. are not valid attributes. |
|
Milan
Joined: 30 Apr 2005 Posts: 2
|
Posted: Sun May 01, 2005 3:30 am |
|
|
|
Hi,
Thanks for your reply.
Can I use the attributes Frameborder and Framespacing? Which browsers, which OSs accept these and which do not? I really don´t want my frames to have borders. Is it a bad idea to use these attributes? Or is there another way I can get the desired effect?
Help would be appreciated.
Greetings
-Milan |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Sun May 01, 2005 5:40 am |
|
|
|
| those attributes should be accepted in most browsers, but it won't validate. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|