Reply to Re: <div class="position"> and <div class" section">

Your name:

Reply:


Posted by Toby Inkster on 05/06/06 23:29

Jonathan N. Little wrote:

> <a name="italienskan-ligan"</a>
>
> Why did Validator not find this error, I do not know.

It wouldn't spot that "error" because it's technically valid. The SGML
declaration for HTML specifies "SHORTTAG YES" which allows for certain
shortcuts to be used. For example:

<b/Foo/ = <b>Foo</b>
<b>Foo</> = <b>Foo</b>
<b<i>Foo</</> = <b><i>Foo</i></b>
<ul<li>One<>Two<>Three</>
= <ul><li>One<li>Two<li>Three</ul>

The example quoted above is shorthand for

<a name="italienskan-ligan"></a>

Thus the validator will not complain. However, virtually no browsers
properly support the full SGML syntax, so on real web pages these
features should probably not be used.

There is however one SHORTTAG feature that is supported by real
browsers -- SHORTTAG is what allows you to leave out the quote marks
for certain attribute values. i.e.

<b class=bar>Foo</b> = <b class="bar">Foo</b>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original 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

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