PDA

View Full Version : <noframes> tag placement


beke
17-02-2003, 08:31/08:31AM
I've seen pages containing the <noframes> tag inside the <frameset> tag ...

I've seen pages containing the <noframes> tag outside the <frameset> tag ...

I've also seen pages with a <body> tag after the <frameset> tag (??)and the <noframes> tag included in this "unregular" body section.

Where do you all think is definitely better to place the <noframes> tag?
:confused:

Alan Perkins
17-02-2003, 09:17/09:17AM
This is the official way (http://www.w3.org/TR/REC-html40/present/frames.html)...

Frameless documents:

<doctype>
<html>
<head>
<title>...</title>
</head>
<body>
...
</body>
</html>
Framed documents:

<doctype>
<html>
<head>
<title>...</title>
</head>
<frameset>
<frame ...>
<frame ...>
<noframes>
...
</noframes>
</frameset>
</html>i.e. frameset documents have no "<body>", and the "<noframes>" is inside the frameset.

beke
17-02-2003, 10:04/10:04AM
This is how I usually work :)

Except for the fact that I pu the <body> tag inside the <noframes> tag...

Do you think search engines could penalize this any way?

Alan Perkins
17-02-2003, 10:08/10:08AM
Originally posted by beke
Do you think search engines could penalize this any way? They could, but I don't think they would. :)

beke
17-02-2003, 10:29/10:29AM
Well, my real question is "Do you think they can ignore the <noframe> meta if it's placed in the wrong part of the page or in the right one, but with that type of sintax error?

But I guess that you can know it only if you have experimented it... :rolleyes:

Sorry if I'm a little bit boring...

g1smd
18-02-2003, 17:24/05:24PM
Run the code through the HTML validator at http://validator.w3.org/ and it will soon tell you what is not allowed and where.



Make sure you head up your document with a !DOCTYPE that is suitable for Framesets; probably "HTML 4.01 Frameset" so that the browser knows what version of HTML you are attempting to use; and that you also include the meta character-encoding information within the <head> so that the browser knows whether to use the Western alphabet, Greek characters, the Cyrillic alphabet, or Thai, Chinese, Japanese, or Arabic scripts to display the page.

beke
19-02-2003, 03:28/03:28AM
Good tips, thanks;)