spacer
Yehuda Shiran June 20, 2000
Custom Tags
Tips: June 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

Customization was always viewed by browser developers as an attractive feature. Microsoft Internet Explorer 4.0, for example, introduced support for custom properties in an HTML document. The way you do it is by just assigning a value to a custom property:

arrayObj.myNewProperty = "foo";

Internet Explorer 5.0 introduced support for custom tags. Custom tags allow a Web author to introduce new structures to a document while associating different styles with those structures. For example, you can define a new tag, <RIGHT>, which right-justifies a paragraph:

<HTML XMLNS:DOCJS>
<HEAD>
<STYLE>
  @media all {
    DOCJS\:RIGHT {text-align:right; width:100}
  }
</STYLE>
</HEAD>
<BODY>
<DOCJS:RIGHT>
 Read Doc JavaScript's columns, tips, tools, and tutorials
</DOCJS:RIGHT>
</BODY>
</HTML>


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji