Ankündigung

Einklappen
Keine Ankündigung bisher.

Validator

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Validator

    Hallo!
    Habe ein Problem mit dem Validator. Er will meine Files nicht testen. Anbei die Fehlermeldung und der Code. Danke für Hilfe.

    Result: Failed validation,
    File: C:\MyPHPs\index.html
    Encoding:
    Doctype:

    Sorry, I am unable to validate this document because its content type is text/plain, which is not currently supported by this service.

    The Content-Type field is sent by your web server (or web browser if you use the file upload interface) and depends on its configuration. Commonly, web servers will have a mapping of filename extensions (such as ".html") to MIME Content-Type values (such as text/html).

    That you received this message can mean that your server is not configured correctly, that your file does not have the correct filename extension, or that you are attempting to validate a file type that we do not support yet. In the latter case you should let us know that you need us to support that content type (please include all relevant details, including the URL to the standards document defining the content type) using the instructions on the Feedback Page.
    Code:
    <html>
    <head>
    <title>Lucas' Homepage</title>
    </head>
    <body>
    <p style="margin:auto">
    <center>
    <table width="600px" border="0">
    <tr><td align="center">
    Titel
    <tr><td align="center">
    Menu Menu Menu Menu Menu Menu Menu Menu Menu Menu Menu
    <tr><td align="justify">
    Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas.
    </table>
    </p>
    </body>
    </html>
    LG Lucas.

  • #2
    setz mal als meta angabe rein

    Code:
    <meta name="content-type" content="text/plain">
    übrigens schonmal vorweg: er wird meckern weil du keinen doctype angegeben hast.

    Kommentar


    • #3
      Danke.

      <p style="margin:auto">
      <center> Wie kann ich center ersetzen? Das gibt es irgendwie seit Strict nicht mehr gleube ich

      Kommentar


      • #4
        Das gibt es schon ewig nicht mehr.
        ^^
        <div style="text-align: center;"></div>

        Kommentar


        • #5
          toll, das weiss ich. aber <p style="text-align: center;"> funzt nicht, und das ist ja das was ich brauche

          Kommentar


          • #6
            wie man bestimmte bereiche horizontal zentriert, wurde hier im forum (und nicht nur hier) schon hundert mal erklärt.
            [URL=http://www.mozilla.org/products/firefox/][img]http://www.nophia.de/misc/spreadtheword/feuerfuchs.gif[/img][/URL]

            Kommentar


            • #7
              Zitat von BEGINNER-L
              toll, das weiss ich. aber <p style="text-align: center;"> funzt nicht, und das ist ja das was ich brauche
              Natürlich geht das. Was immer du da falsch machst

              Kommentar


              • #8
                Ich weiss nicht was du nutzt, wahrscheinlich IE, denn bei Opera unf Firefox ist der Text nach links geklemmt!!
                Teste es aus, wenn du's nicht glaubst:
                Code:
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                <html>
                <head>
                <meta name="content-type" content="text/html" />
                <title>Lucas' Homepage</title>
                </head>
                <body>
                <p style="margin:auto;text-align:center;">
                <table style="width:600px;border:0;">
                <tr><td align="center">
                Titel
                <tr><td align="center">
                Menu Menu Menu Menu Menu Menu Menu Menu Menu Menu Menu
                <tr><td align="justify">
                Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas. Hallo ich bin der Lucas.
                </table>
                </p>
                </body>
                </html>

                Kommentar


                • #9
                  Jo, nur noch einen Fehler von Validator, den ich nicht verstehe:


                  Error Line 10 column 39: document type does not allow element "table" here; missing one of "object", "ins", "del", "map", "button" start-tag.

                  <table style="width:600px;border:0;">

                  The mentioned element is not allowed 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 "

                  " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

                  Kommentar


                  • #10
                    Hallo?

                    Kommentar


                    • #11
                      Du hast das

                      ja auch um eine Tabelle gemacht... damit geht das nicht. NORMALER Text wird bei mir in der Mitte angezeigt! Nimm das

                      mal raus und gib der Tabelle ein margin: auto. Ich benutze nicht den IE, sondern den FF.

                      Kommentar


                      • #12
                        gut, damit habe ich die überflüssige

                        raus und die tabelle selber auf margin:auto; gesetzt, aber wie kann ich die tabelle valide in die mitte rücken. egal ob <center> oder was anderes, entweder der validator oder ein browser meckert! Wieso bekomm ich das nicht hin??!! *herrje*
                        Aber trotzdem THX für deine Hilfe.
                        LG Lucas.

                        Kommentar


                        • #13
                          Zitat von BEGINNER-L
                          gut, damit habe ich die überflüssige

                          raus und die tabelle selber auf margin:auto; gesetzt, aber wie kann ich die tabelle valide in die mitte rücken.
                          Die Antwort steht schon in diesem Thread.

                          Für den IE ein text-align:center für das übergeordnete Element (Sei es nun ein div oder das body-Element) und für Browser ein margin:0 auto;
                          [URL="https://www.quizshow.io/"]Create your own quiz show.[/URL]

                          Kommentar


                          • #14
                            Ah. Nicht verstanden . Egal. Irgendwie hab ich es hinbekommen. Weiß nicht wieso es jetzt klappt. Zu meinem letzten schönheitsfehler des Validators. Was ist falsch?

                            Zitat von Validator
                            Error Line 10 column 39: document type does not allow element "table" here; missing one of "object", "ins", "del", "map", "button" start-tag.

                            <table style="width:600px;border:0;">

                            The mentioned element is not allowed 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 "

                            " or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

                            Kommentar


                            • #15
                              <table> ist doch ein block element und das darf nicht in einen

                              Absatz. Absatz vor der tabelle schließen und danach nen neuen öffnen.

                              Kommentar

                              Lädt...
                              X