Inline Style Information

You can specify inline styles inside an XHTML element. The style information given applies to the document content up until the defining tag's companion closing tag is encountered. Consider the Morgan Stanley Dean Witter site in Figure 9.3. The code for one of the links down the left side of the screen is

Figure 9.3. Many XHTML elements take the style attribute that specifies style information to apply to content contained within the element.

<a href="institutional/clientlink/index.html"
onmouseout="out('link')" onmouseover="over('link')"
style="COLOR: #ffffff" target="top">
<b>ClientLink</b>
</a>

The style attribute ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.