labaiss Posted January 11, 2011 Report Share Posted January 11, 2011 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>this is the title of the web page</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <form action="formscript.php" method="post"> <input type="text" name="firstname" /> <input type="submit" /> </form> </body> </html> Errors found while checking this document as XHTML 1.0 Strict! Result: 2 Errors # Line 13, Column 38: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag <input type="text" name="firstname" /> ✉ 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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). # Error Line 15, Column 23: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag <input type="submit" /> ✉ 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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Kur tur es pārkāpju strict standartu? Es nesaprotu. Quote Link to comment Share on other sites More sharing options...
Blitz Posted January 11, 2011 Report Share Posted January 11, 2011 (edited) <form> <fieldset> <input/> <input/> <input/> </fieldset> </form> Edited January 11, 2011 by Blitz Quote Link to comment Share on other sites More sharing options...
labaiss Posted January 11, 2011 Author Report Share Posted January 11, 2011 (edited) Paldies. Tagad kaut ko iemācījos. Edited January 11, 2011 by labaiss Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 11, 2011 Report Share Posted January 11, 2011 Nu šitas nav TIK svarīgi... =D Quote Link to comment Share on other sites More sharing options...
labaiss Posted January 11, 2011 Author Report Share Posted January 11, 2011 (edited) Nu šitas nav TIK svarīgi... =D Man tas ir ļoti svarīgi. Edited January 11, 2011 by labaiss Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 11, 2011 Report Share Posted January 11, 2011 Paskaidrosi? Quote Link to comment Share on other sites More sharing options...
labaiss Posted January 11, 2011 Author Report Share Posted January 11, 2011 Paskaidrosi? Tas lai paliek noslēpums - lai kods ir Valid Quote Link to comment Share on other sites More sharing options...
indoom Posted January 11, 2011 Report Share Posted January 11, 2011 daGrevis, tad, kad tiešām gribēsi zināt, kāpēc viss layouts nobrucis, tad jauksies miljons "nesvarīgu" kļūdu, kas apgrūtinās īstās problēmas atrašanu. Quote Link to comment Share on other sites More sharing options...
labaiss Posted January 11, 2011 Author Report Share Posted January 11, 2011 (edited) + laikam no SEO viedokļa, tas arī esot ieteicams. + lai nākošajam, kas labos&papildinās ir skaidrs un zināms kāda tieši doctypā rakstīts. + tas ir standarts, kā zināms bez standartiem grūti dzīvot. + http://validator.w3.org/docs/why.html P.s. nu tā es domāju Edited January 11, 2011 by labaiss Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 11, 2011 Report Share Posted January 11, 2011 Nē, tas ir svarīgi. Nesaku, ka nevajag kodam būt validam. Bet tas nav svarīgākais! =P Quote Link to comment Share on other sites More sharing options...
indoom Posted January 12, 2011 Report Share Posted January 12, 2011 Nesaku, ka tavi komentāri nav vajadzīgi, bet nav TIK svarīgi rakstīt pie katra temata kaut ko bezjēdzīgu. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 12, 2011 Report Share Posted January 12, 2011 Nepatīk - nelasi. =D Quote Link to comment Share on other sites More sharing options...
php newbie Posted January 12, 2011 Report Share Posted January 12, 2011 Nesaku, ka tavi komentāri nav vajadzīgi, bet nav TIK svarīgi rakstīt pie katra temata kaut ko bezjēdzīgu. un vēl ar tiem tizliem smailiņiem Quote Link to comment Share on other sites More sharing options...
yeahz Posted January 12, 2011 Report Share Posted January 12, 2011 un vēl ar tiem tizliem smailiņiem vai ne. =P ===DD Quote Link to comment Share on other sites More sharing options...
codez Posted January 12, 2011 Report Share Posted January 12, 2011 Es ar uzskatu, ka validācija ir pēdējā lieta par ko jādomā, ja palicis tiešām daudz brīva laika un iestājusies garlaicība. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.