Validaattori herjaa, että ei voi testata koska dokumenttityyppi puuttuu. Mikähän dokumenttityyppi pitäisi määritellä, olen tehnyt sivun front pagella.
Linkki validaattorille
http://validator.w3.org/
Fatal error, no doctype specified!
I could not parse this document, because it does not include a DOCTYPE Declaration. A DOCTYPE Declaration is mandatory for most current markup languages and without such a declaration it is impossible to validate this document.
You should place a DOCTYPE declaration as the very first thing in your HTML document. For example, for a typical XHTML 1.0 document:
Title
For XML documents, you may also wish to include an "XML Declaration" even before the DOCTYPE Declaration, but this is not well supported in older browsers. More information about this can be found in the XHTML 1.0 Recommendation.
The W3C QA Activity maintains a List of Valid Doctypes that you can choose from, and the WDG maintains a document on "Choosing a DOCTYPE".
Linkki validaattorille
http://validator.w3.org/
Fatal error, no doctype specified!
I could not parse this document, because it does not include a DOCTYPE Declaration. A DOCTYPE Declaration is mandatory for most current markup languages and without such a declaration it is impossible to validate this document.
You should place a DOCTYPE declaration as the very first thing in your HTML document. For example, for a typical XHTML 1.0 document:
Title
For XML documents, you may also wish to include an "XML Declaration" even before the DOCTYPE Declaration, but this is not well supported in older browsers. More information about this can be found in the XHTML 1.0 Recommendation.
The W3C QA Activity maintains a List of Valid Doctypes that you can choose from, and the WDG maintains a document on "Choosing a DOCTYPE".
Vastaukset 5
Vanhimmat
Mikä dokumenttityyppi on kyseessä.
Eli jos tiedostosi on XHTML tiedosto niin tämä sinne tiedoston alkuun:
Jos se on HTML4.01 niin tämä tiedoston alkuun:
Ja tuon lisääminen onnistuu FrontPagella siinä koodin katselu tilassa. Se liitetään sinne tagin yläpuolelle.
Below are the results of attempting to parse this document with an SGML parser.
No nyt se sitten herjaa sitä koodia. Laitoin mallin mukaan, nyt se herjaa enää tätä uutta koodia ja nuoli osoittaa http-sanaa. Pitäisikö tohon laittaa oma osoite vai mikä mahtaa olla pielessä
Line 3, column 13: "HTTP
Mistähän tietää, mikä tyyppi on kysymyksessä. Minun tapauksessani HTML-koodi on peräisin Front Page 2002:sta, eikä sieltä automaattisesti tule mitään k.o. määritystä
Se frontPage ei automaattisesti lisää sitä sinne.
Mutta ainakin jos käsipelillä koodia naputtaa, niin tietää minkä "sääntöjen" mukaan se koodi tulee...