You are here: Re: Defining Your Own Attribute in an HTML Tag « HTML « IT news, forums, messages
Re: Defining Your Own Attribute in an HTML Tag

Posted by Adrienne Boswell on 10/10/41 11:49

Gazing into my crystal ball I observed "Herman" <mherman3@gmail.com>
writing in news:1149553934.243133.35580@h76g2000cwa.googlegroups.com:

> Is it illegal to define your own attributes that are not defined by
> HTML standards? It sounds stupid, but would this work:
>
><td id='cell' info='Information stored here'>
>
> Then in javascript:
>
> var info = document.getElementById('cell').info;
>
> The attribute wouldn't have an effect on the element itself, but it
> would act as an information holder for the particular element.
> This idea to me screams conflict with W3 standards, but its an idea
> that would seemingly make things easier for me.
> Any thoughts?
> Thanks a lot.
>
>

That trouble with doing something like at is that because it is non-
standard, it may break in some browsers, or it may break some time in the
future.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

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

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