Autor Zpráva
ananasovapasta
Profil *
Ahoj, nevíte jak účinně validovat frameset tak aby v něm nebyly žádné errory ?

ve stránce mám :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title></title>
</head>
<frameset rows="*" cols="25%,*" border="0">
     <frame src="menu.php" name="menu" />
     <frame src="plannedRoles.php" name="content" />
</frameset>
</html>


ale validátor hlásí :

#  Error  Line 7, Column 40: Attribute "BORDER" is not a valid attribute. Did you mean "border"?

<frameset rows="*" cols="25%,*" border="0">

✉

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.


Moderátor Joker: Přesunto do XHTML, Doctype a validita
Joker
Profil
ananasovapasta:
Přesunu vlákno do kategorie "XHTML, Doctype a validita". Čekám až si to přečtete, abyste pak věděl kde ho hledat.

Validátor si stěžuje na to, že HTML prvek <frameset> nemá ve specifikaci definovaný atribut s jménem border, čili používáte neznámý atribut.
Červenou hlášku odstraníte nepoužíváním atributu border.
Yur4Y
Profil
Pokiaľ nerozumiete, použite český validátor, kde uvidíte aj riešenie vášho problému. Použite CSS vlastnosť border a nezabudnite zmazať tie zbytočné lomítka z tagov <frame>.
Miloš
Profil
Umíš číst?
Error Line 7, Column 40: Attribute "BORDER" is not a valid attribute. Did you mean "border"?

Neumíš anglicky? I pitomý Gůůgltranslátor ti to snad řekne srozumitelně:
Error Line 7, sloupec 40: Atribut "hraniční" není platný atribut. Měli jste na mysli "hranice"?
neboli (stručně) atribut border tam nemá co dělat.

A jestliže nerozumíš hláškám anglického validátoru, můžeš použít český.
Bubák
Profil
Miloš napsal:
A jestliže nerozumíš hláškám anglického validátoru, můžeš použít český.
To je sice pravda, ale ani ten v tomto případě moc nepomůže, vyhodí zavádějící hlášku:
Řádek 7, znak 33: nedovolený atribut "BORDER".
<frameset rows="*" cols="25%,*" border="0">
Použijte raději CSS vlastnost border.

Na frameset CSS nefunguje, validní bude frameborder
ananasovapasta
Profil *
díky, otázka je zda má cenu stránku vůbec validovat, i tato diskuze má 6 chyb a google dokonce 133 ...
panther
Profil
ananasovapasta:
otázka je zda má cenu stránku vůbec validovat
nemá.
Miloš
Profil
Kontrolovat validitu má smysle leda pro takové případy, že člověk něco zapomenul uzavřít a diví se, proč se stránka chová divně, jakož když omylem zkříží tagy a podobně. Oproti tomu validovat pro validitu je spíš pitomost.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0