Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Html minimum fehler

    61lazzo

    • Mitglied
    • Beiträge: 101
    • Geschlecht:
    Html minimum fehler
    am: 27. Februar 2014, 14:14:15
    Hallo,

    ich bins wieder :D

    Wieso sagt er mir das es ein fehler ist ?
    Code: XML  [Auswählen]
    Validation Output: 1 Error

     Line 324, Column 124: there is no attribute "min"
    … value="1" size="4" id="spinner5" min="1" maxlength="3" /> <input type="hidden…

    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.

    min="1" dies ist doch richtig wieso wird es als fehler gesehen ?

    Vielen Danke

    Linkback: https://www.modified-shop.org/forum/index.php?topic=29504.0

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Html minimum fehler
    Antwort #1 am: 27. Februar 2014, 14:24:23
    Weil du neuere Techniken verwenden möchtest, die aber laut XHTML nicht valide sind.

    Gruß
    Ronny

    Matt

    • Experte
    • Beiträge: 4.241
    Re: Html minimum fehler
    Antwort #2 am: 27. Februar 2014, 20:41:16
    Was Ronny sagen will
    Code: XML  [Auswählen]
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ersetzen durch
    Code: XML  [Auswählen]
    <!DOCTYPE HTML>

    61lazzo

    • Mitglied
    • Beiträge: 101
    • Geschlecht:
    Re: Html minimum fehler
    Antwort #3 am: 27. Februar 2014, 22:36:28
    Lohnt es sich denn das zu machen ? Ist es ein großer fehler also ein böser fehler oder kann man das einfach so lassen wie ich das gerade habe ?

    In welcher datei ist das übrigens. ?
    Ahh header.php ist es aber wenn ich das so veränder habe ich deutlich mehr fehler...
    ?!

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.988
    • Geschlecht:
    Re: Html minimum fehler
    Antwort #4 am: 28. Februar 2014, 01:02:20
    Da muß man sich schon ein wenig in HTML5 einlesen.
    Z.B. sind bestimmte meta-tags nicht mehr erlaubt in HTML5.
    Viele Dinge kann man aber auch in HTML weiter benutzen,
    wie z.B. selbst schließende tags wie bei <img src="" alt="" /> oder <input type="" name="" value="" />.

    Im übrigen kannst du die im Validator doch ziemlich genauen Angaben ja einfach abarbeiten.
    HTML5 ist ohnehin die Zukunft, das gepaart mit UTF-8 und du bist up-to date.
    HTML5 hat einige Vorteile, nicht zuletzt auch die Tatsache, daß man dem html-tag eine Klasse vergeben kann und so leicht Fallbacks für deaktiviertes Javascript im Browser wie auch IE-Fallbacks per CSS generieren kann.
    Wie immer hilft Tante Suchmaschine weiter.

    Gruß,
    noRiddle

    61lazzo

    • Mitglied
    • Beiträge: 101
    • Geschlecht:
    Re: Html minimum fehler
    Antwort #5 am: 01. März 2014, 17:59:40
    Vielen Dank für die Infomation werde mich mal rein lesen...
    Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
               
    anything