Autor Zpráva
TomasJmeno
Profil
Ahoj,

používám toto: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


zápis kódu vypadá takto:
<div id="hlavicka">
<g:plusone size="small" ></g:plusone >
</div>





validátor mě pořád ukazuje chyby v tomto stylu:

<g:plusone size="small" ></g:plusone >



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.
Error Line 72, Column 29: element "g:plusone" undefined

<g:plusone size="small" ></g:plusone >



You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).



Nějak nemůžu příjit na to, co se validátoru nelíbí. Kdyby mi někdo poradil, byl bych velice rád.
Chamurappi
Profil
Reaguji na TomaseJmena:
Element <g:plusone> v odkázané DTD neexistuje. Atributy elementu <g:plusone> v odkázané DTD také neexistují. Buď odstraň element, nebo uprav DTD, nebo nějak oblbni validátor, nebo si uvědom, k čemu validita slouží.
__construct
Profil
TomasJmeno:
Nemusíš používať „nevalídny“ element <g:plusone> – pozri si toto vlákno. Pozri sa do API.
TomasJmeno
Profil
Dobrá, to bych vyřešil, díky.

A nevíte co s tímto?

Opět toto: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Line 94, column 44: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

<li class="sliding-element"><a href="cenik.html">Ceník</a></li>






Celý zápis je takto:



<div id="telo">  
    
    
   <div id="navigation-block">
        
 
        <ul id="sliding-navigation">
                <li class="sliding-element"><a href="cenik.html">Ceník</a></li>
                <li class="sliding-element"><a href="spoluprace.html">Spolupráce</a></li>
                <li class="sliding-element"><a href="kontakt.html">Kontakt / nezávazná objednávka</b></a></li>
      </ul>
    </div>
    
    
    
    <div id="telotext"> text text

	
	</div>
      </div>
TomasJmeno
Profil
Tak jsem si poradil, nemusíte odpovídat :)
Chamurappi
Profil
Reaguji na TomaseJmena:
V uvedeném kódu stejně uváděná chyba není.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

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

0