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

Posted by Herman on 02/02/34 11:49

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.

 

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

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