Michael Trenkner: xhtml: text is not allowed here

hallo,

ich sehe des öfteren die fehlermeldung des w3c-validators, zum beispiel direkt vor <input...>:

Error: text is not allowed here; try wrapping the text in a more descriptive container

Was gibts denn da für nen neuen Container für solche Textprobleme?

  1. Hallo,

    Error: text is not allowed here; try wrapping the text in a more descriptive container

    steht der Text denn überhaupt in einem Blockelement?

    Schönen Gruß

    Rainer

    1. Halli,

      Error: text is not allowed here; try wrapping the text in a more descriptive container

      steht der Text denn überhaupt in einem Blockelement?

      Und wenn ja, in einem, das auch Text erlaubt? (form gehört zu den Blockelementen, darf aber nur block-elemente enthalten, keinen Text)
      cu,
      Robert

      1. Halli,

        Error: text is not allowed here; try wrapping the text in a more descriptive container

        steht der Text denn überhaupt in einem Blockelement?

        Und wenn ja, in einem, das auch Text erlaubt? (form gehört zu den Blockelementen, darf aber nur block-elemente enthalten, keinen Text)
        cu,
        Robert

        Aber es muss doch die Möglichkeit geben, trotzdem die Input-Felder entsprechend mit einem Kommentar außerhalb zu beschriften? Wie denn, wenn mans nicht darf *ärger*?

        1. Halli,

          Und wenn ja, in einem, das auch Text erlaubt? (form gehört zu den Blockelementen, darf aber nur block-elemente enthalten, keinen Text)
          Aber es muss doch die Möglichkeit geben, trotzdem die Input-Felder entsprechend mit einem Kommentar außerhalb zu beschriften? Wie denn, wenn mans nicht darf *ärger*?

          Du packst in die form ein block-level-Element, das Text direkt (p, div, ...) oder weiter geschachtelt (table) enthalten darf.

          cu,
          Robert