Log in

View Full Version : 5 html mistakes



auriaks
07-25-2010, 09:06 AM
Hi,
I faced these mistakes... can't solve them alone. Here is the link: http://validator.w3.org/check?uri=www.share2gether.xz.lt&charset=%28detect+automatically%29&doctype=Inline&group=0

traq
07-25-2010, 05:11 PM
try changing
<div id="meniu">
<form method='post' action='login.php'>

Nick <input class="input" type='text' name='nick' size='10'><div></div>
Code <input class="input" type='password' name='password' size='10'><div></div>
<input class="sub" type='submit' name='enter' value='Enter'>
</form>
</div>

to
<div id="meniu">
<form method='post' action='login.php'>
<p>
Nick <input class="input" type='text' name='nick' size='10'><div></div>
Code <input class="input" type='password' name='password' size='10'><div></div>
<input class="sub" type='submit' name='enter' value='Enter'>
</p>
</form>
</div>
It's just telling you to put text and <inputs> in some sort of container (putting them directly in a <form> doesn't count)

auriaks
07-27-2010, 09:56 AM
yea, it was part of an answer... Thanks

traq
07-27-2010, 02:20 PM
Glad I could help. I thought you were checking your page as html5 before...? Did you actually intend to use 4.01?

auriaks
07-30-2010, 09:16 PM
what do you mean "intend"? I was told to use it, like it was a great option

traq
07-31-2010, 12:46 AM
no, it is a great option. I thought (I may be mistaken) that you were originally checking it as html5. There's no problem.

djr33
07-31-2010, 02:46 AM
Perhaps the title "5 html mistakes"... if you read that quickly... :)

traq
07-31-2010, 02:56 AM
hmm... maybe... :p

jscheuer1
07-31-2010, 05:43 AM
I recently had a run in of sorts with one of the folks who helps maintain the standards for HTML 5. Things ended amicably enough. In the process I learned that in HTML 5, along with many enhanced features, quite a few of which aren't yet implemented in some and/or all browsers, that at least several, if not more, of the standards from HTML 4.01 and XHTML 1.0 strict and transitional have been relaxed. Just as an example, the type attribute is no longer required for style or script blocks as long as they are the defaults (text/css and text/javascript, respectively).

djr33
07-31-2010, 01:47 PM
Interesting, John. HTML 5 makes me excited in some ways, but at the same time I feel like it's going to be a mess for years until browsers adopt it. Just like with XHTML, it may not be until HTML6 that HTML5 finally "Works" at which point we'll all be trying to use HTML6 anyway, just like now waiting for HTML5.

Is there any way that they're going to try to fix this cycle?


Auriaks, sorry for interrupting your thread, but I think all of your questions are answered. If not, let us know.

traq
07-31-2010, 02:47 PM
Actually, I started using the html5 doctype when I found out that almost *anything* that's valid html4.01 (strict) is also valid in html5. It does cut out a little of the verbose-ness - codes much cleaner.

djr33
07-31-2010, 06:46 PM
That's true. But the issue is that since HTML5 won't tell you things not yet supported are "wrong", it won't really be a very valid page until all the major browsers catch up. What you're doing is more verifying/writing as HTML4, then calling it HTML5 (which is completely valid, but not really different). But at least then the transition should be smoother, though I'm guessing still very slow.

traq
07-31-2010, 07:59 PM
yeah. realistically, I'm still using html4.01 strict, because I won't be adding any "true" html5 stuff until it's widely supported. it'll come, albeit slowly. But, as bluewalrus says, I can leave out stuff like type="text/javascript" without causing a fuss. And the doctype is sooooooo much easier to remember :p

auriaks
08-09-2010, 07:31 AM
Yes and thanks guys... Thread is answered ;D