You are here: Re: What is the difference between Meta Tags? « HTML « IT news, forums, messages
Re: What is the difference between Meta Tags?

Posted by Benjamin Niemann on 11/14/00 11:27

PretLetters wrote:

>
> Benjamin Niemann wrote:
>> Usually you have to quote the attribute value - the quotes can only be
>> omitted in some special cases like here (only letters).
>>
>
> Having to quote attribute values depends on two things:
> - the doctype you choose to use;

There is no difference between the strict and transitional versions of HTML4
in this regard. There _is_ a difference between HTML and XHTML - in XHTML
the quotes must be present. I did not consider XHTML here, because the code
snip of the OP was obviously HTML.

> - whether or not the value has spaces in it.

It's not that easy. The exact list of allowed characters in unquoted
attribute values can be found in the spec, section "3.2.2 Attributes":

<quote>
In certain cases, authors may specify the value of an attribute without any
quotation marks. The attribute value may only contain letters (a-z and
A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46),
underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend
using quotation marks even when it is possible to eliminate them.
</quote>

> For HTML4.01 Transitional you are not required to quote values for
> example.

Not true, see above.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/

 

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

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