Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem Problém s validací tagů FRAME, FRAME SET a FRAME NAME

Zdravím vespolek, plácám se s validací tohohle kódu, ale co na mně prská validátor mi nejde na rozum.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Poznávací výlety v Moravském krasu
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>
<frameset cols="150, *">
<frame name="obsah" target="hlavní" src="menu.htm" scrolling="auto" noresize>
<frame name="hlavní" src="hlstrana.htm" target="_self" scrolling="auto" noresize>
</frameset>
</html>

Nevíte někdo, proč tato část kódu prostě nejde zvalidovat? Díky za odpovědi :)

Předmět Autor Datum
Možná to bude tím, že validátor rovnou píše, že stránky v rámcích jsou špatné (byla to móda tak okol…
Kráťa 13.05.2009 18:24
Kráťa
Díky Vikanovi jsem změnil první řádek na toto: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Framese…
Timmy 13.05.2009 21:29
Timmy
Nebude tam chyba v tom, že používáš diakritiku v názvu targetu? edit:// nebude, nastav si <base tar…
mia 13.05.2009 23:30
mia
První řádek - misto Transitional dej Frameset. A nebo ještě lépe se na rámce úplně vykašli.
Wikan 13.05.2009 18:42
Wikan
příkaz FRAME nemá definován parametr TARGET, ten je pro pro příkaz A nebo BASE poslední
JoDiK 14.05.2009 08:40
JoDiK

Možná to bude tím, že validátor rovnou píše, že stránky v rámcích jsou špatné (byla to móda tak okolo roku 2000).
Vypiš sem tu konkrétní chybu co to vyhazuje. Validátor i píše co konkrétně se mu nelíbí, na jakém řádku a možná i znak.

Díky Vikanovi jsem změnil první řádek na toto:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>Poznávací výlety v Moravském krasu
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>
<frameset cols="150, *">
<frame name="obsah" src="menu.htm" target="hlavní" scrolling="auto" noresize>
<frame name="hlavní" src="hlstrana.htm" target="_self" scrolling="auto" noresize>
</frameset>
</html>

Ale pořád to píše tuhletu chybu:

Validation Output: 1 Error

1. Error Line 9, Column 32: Attribute "TARGET" is not a valid attribute. Did you mean "target"?

<frame name="obsah" target="hlavní" src="menu.htm" scrolling="auto" noresi…

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

Zpět do poradny Odpovědět na původní otázku Nahoru