You are here: Re: What's wrong with this HTML (fails validation) ? « HTML « IT news, forums, messages
Re: What's wrong with this HTML (fails validation) ?

Posted by Andy Dingley on 02/16/07 16:44

On 16 Feb, 16:14, rem6...@yahoo.com (robert maas, see http://
tinyurl.com/uh3t) wrote:
> > From: "Andy Dingley" <ding...@codesmiths.com>
> > > > So close your elements with an end tag.
> > > If I do that, validation fails. Should I just ignore validation failure??
> > No, you should learn the difference between closing a tag and
> > closing an element.
>
> I thought I already knew that:

No, you don't appear to know _anything_. You go round and round in
little circles over the obvious trivia, yet you don't _learn_ from
this. Then you post a vast screed about something unrelated.

Closing empty tags XML-style is causing you validation problems for
HTML (not surprisingly - it's wrong).

Closing non-empty elements with an explicit end tag is usually
optional in HTML, but it's a good current practice because it's simple
and consistent with XML practice. It does _not_ cause validation
failures.
Chances are that this is what your poor tutor tried to teach you, but
you mis-understood it as the first option.



To introduce a second topic into this post (which I just _know_ can't
be a good idea), there is no "HTML / XML Transitional" markup or
doctype.

HTML Transitional appeard in HTML 4 as a transition away from HTML
3.2 It's a "3.2 => 4" transition.

XHTML 1.0 also supports both Strict and Transitional, so that you can
convert HTML 4 Strict into XHTML Strict and you can jump straight from
HTML 3.2 to XHTML 1.0 Transitional as well. It's not a transition
"into XML" though.


In all seriousness, you don't need to learn HTML, you need to learn
Zen.
Mount Shasta has a good abbey and there's Mount Baldy too (do you like
Leonard Cohen?)
They can't be that far from Cupertino.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация