Back to top

Autore Topic: [RISOLTO] The mentioned element is not allowed...  (Letto 2578 volte)

Offline Nuvola6

  • Appassionato
  • ***
  • Post: 718
  • Sesso: Femmina
    • Mostra profilo
[RISOLTO] The mentioned element is not allowed...
« il: 13 Lug 2011, 19:53:17 »
Perchè ricevo questo errore di validazione wc3:

Line 514, Column 22: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

   to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
 One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
 
Codice:

Codice: [Seleziona]
<div id="ricerca">
                <span class="text_agenti_title">RICERCA</span>
                <span class="text_agenti">AGENTI</span>[br /]
                <span class="text_agenti_br">o Rivenditori di zona</span>
</div>
« Ultima modifica: 13 Lug 2011, 23:12:10 da Nuvola6 »

mau_develop

  • Visitatore
Re:The mentioned element is not allowed...
« Risposta #1 il: 13 Lug 2011, 21:15:57 »
document type does not allow element "div" here

http://translate.google.com/#en|it|document%20type%20does%20not%20allow%20element%20%22div%22%20here

M.

Offline Nuvola6

  • Appassionato
  • ***
  • Post: 718
  • Sesso: Femmina
    • Mostra profilo
Re:The mentioned element is not allowed...
« Risposta #2 il: 13 Lug 2011, 21:17:59 »
ma cosa significa? conosco la traduzione
« Ultima modifica: 13 Lug 2011, 21:19:50 da Nuvola6 »

mau_develop

  • Visitatore
Re:The mentioned element is not allowed...
« Risposta #3 il: 13 Lug 2011, 21:29:14 »
cosa vuol dire cosa significa?... quello che c'è scritto... controlla il tuo document type e guarda se è permesso l'uso dei div... non credo, se te lo dice...
poi ti dice quali e come sono i tag permessi.

M.

Offline Nuvola6

  • Appassionato
  • ***
  • Post: 718
  • Sesso: Femmina
    • Mostra profilo
Re:The mentioned element is not allowed...
« Risposta #4 il: 13 Lug 2011, 21:30:00 »
Ma il template è fatto a mano per joomla. Solo quel div mi dà problemi

Offline Nuvola6

  • Appassionato
  • ***
  • Post: 718
  • Sesso: Femmina
    • Mostra profilo
Re:The mentioned element is not allowed...
« Risposta #5 il: 13 Lug 2011, 21:31:36 »
Cos'ha che non va il mio doctype?

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

mau_develop

  • Visitatore
Re:The mentioned element is not allowed...
« Risposta #6 il: 13 Lug 2011, 22:21:50 »
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
------------------------------
io proverei a togliere quel br, ... oppure l'errore è prima... dove apri quel div? dentro cosa?

M.

Offline Nuvola6

  • Appassionato
  • ***
  • Post: 718
  • Sesso: Femmina
    • Mostra profilo
Re:The mentioned element is not allowed...
« Risposta #7 il: 13 Lug 2011, 22:25:15 »
Mau il codice intero è questo:

Codice: [Seleziona]
<div id="agenti"><a href="http://www.xxx.it/ricerca-agenti"><img src="templates/<?php echo $this->template ?>/images/agenti.png" alt="agenti" />
                <div id="ricerca" class="web">
                <span class="text_agenti_title">RICERCA</span>
                <span class="text_agenti">AGENTI</span><br /><span class="text_agenti_br">o Rivenditori di zona</span></div>
                </a> </div>

mau_develop

  • Visitatore
Re:The mentioned element is not allowed...
« Risposta #8 il: 13 Lug 2011, 23:11:12 »
e infatti ha ragione! ...hai messo il div all'interno dell' a

M.

Offline Nuvola6

  • Appassionato
  • ***
  • Post: 718
  • Sesso: Femmina
    • Mostra profilo
Re:The mentioned element is not allowed...
« Risposta #9 il: 13 Lug 2011, 23:11:53 »
Ops. Correggo subito.
Grazie mille!

 



Web Design Bolzano Kreatif