June 20, 2000 - Custom Tags
June 20, 2000 Custom Tags Tips: June 2000
Yehuda Shiran, Ph.D.
|
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>