| | |
| Stránka: 1 z 1
| [ Príspevkov: 4 ] | |
Autor | Správa |
---|
Registrovaný: 27.07.06 Prihlásený: 24.06.07 Príspevky: 18 Témy: 5 |
chcem si zvalidovat stranku, skusal som to na najjednoduchsom subore, ale neviem sa pohnut ani pri nom.. staci mi jeden priklad, ja na to nejak pridem
Kód: <html> <head> <title>subSilver created by subBlue Design</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="center" valign="middle"><a href="http://www.subblue.com/" target="_new"><img src="images/created_by.jpg" width="400" height="300" border="0" alt="Created by subBlue Design" /></a></td> </tr> </table>
</body> </html> a k tomu mam tieto chyby: Kód: # Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
<html>
The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with a fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid.
✉ # Error Line 9 column 27: there is no attribute "HEIGHT".
<table width="100%" height="100%" cellspacing="0" cellpadding="0" 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.
ked som vlozil doctype vyhodilo to ine chyby s ktorymi som si nevedel poradit
|
|
Registrovaný: 21.02.06 Prihlásený: 08.12.14 Príspevky: 5404 Témy: 30 Bydlisko: Bratislava | Napísal shaggy: 27.07.2006 22:20 | |
|
Neviem aký doctype si tam vložil, ale ja som tam dal toto:
Kód: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
a dal som preč Height (nemusíš ho dávať preč, stačí ho dať do štýlov ale mne sa to nechcelo prepisovať) a bolo to valídne.
Skús si pozreť stránky www.jakpsatweb.cz alebo http://polopate.jakpsatweb.cz/
|
|
Registrovaný: 22.11.05 Prihlásený: 29.01.23 Príspevky: 712 Témy: 25 Bydlisko: SK-Martin | Napísal mokus: 28.07.2006 10:30 | |
|
je snáď samozrejmé, že validátor pracuje hlavne podľa DOCTYPE,
takže príslušný html dokument musí byť v súlade s príslušným DOCTYPE (preto sú rôzne, lebo sa v niečom líšia)
v prípade nezadania DOCTYPE validátor berie do úvahy nejaký základ HTML, ale toto neviem aký, preto sa ti tie hlásenia líšili
k tej prvej hláške o výške TABLE, len toľko, že ak nemáš viac atributov pre tabuľku, ako si uviedol, tak je výška TABLE v % určitým spôsobom nezmysel, toto sa ti prispôsobuje podľa obsahu,
vychádzaj z toho, že šírka stránky je daná pixlami v danom rozlíšení zobrazenia (ak to dávaš v %, tak to bude vždy šírka podľa rozlíšenia, ktorú má uživateľ nastavenú),
ale u výšky to neplatí, pretože výška dokumentu je v prípade zadania v %, neurčitá -plne závislá na ostatných nastaveniach, prípadne na veľkosti obsahu dokumentu
a ešte jedna vec: ak máš výšku vymedzenú v jednotlivých bunkách(TD) a v pixloch, tak je zbytočné zadávať výšku TABLE
|
|
Registrovaný: 27.07.06 Prihlásený: 24.06.07 Príspevky: 18 Témy: 5 | Napísal autor témy miki24686: 28.07.2006 11:27 | |
|
dik hosi, ak bude problem napisem
|
|
| Stránka: 1 z 1
| [ Príspevkov: 4 ] | |
Podobné témy | Témy | Odpovede | Zobrazenia | Posledný príspevok |
---|
| validator v PHP, ASP | 6 | 613 | 15.01.2008 20:41 Matho | | W3 Validátor v Ostatné | 22 | 1903 | 11.10.2009 13:02 Ďuri | | Validator W3C v HTML, XHTML, XML, CSS | 24 | 1279 | 19.03.2008 14:07 emer | | form action - validator problem v HTML, XHTML, XML, CSS | 6 | 790 | 30.09.2008 14:13 enorm | | Validator hlasi 2 chyby v XHTML dokumente v HTML, XHTML, XML, CSS | 3 | 432 | 06.06.2010 21:51 shaggy | | Validator hlasi "Byte-Order Mark found in UTF-8 File." v HTML, XHTML, XML, CSS | 3 | 680 | 05.09.2010 13:02 chrono |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|