Don't confuse this draft with the Cascading Style Sheet draft released
earlier this year. This
draft merely describes how stylesheets can be called via HTML, and
introduces a couple new tags that enable this.
As we saw in the Linking draft, you can use the <link>
tag in the head of your
document to pull in an externally linked stylesheet. But that's only one
way you can add the presentational power of stylesheets to your
page. You can also embed the style hints right in the head of your page.
The style draft outlines usage of the new <style> tag,
how it can be
used to specify a section of stylistic information, and also which
stylesheet language should be used to render the elements in your document.
After all, CSS is only one of many possible stylesheet languages that could
emerge in future browsers. Netscape's JavaScript Style Sheets, for example,
point to a way to use a scripting language to create style for pages.
Finally, this specification details how to add style commands right into
the HTML tags in your page. Any tag, like <em> or
<p>, can now take a STYLE
attribute with formatting code dumped right in. So a structure like this,
for example:
would effectively turn your content green. If you'd like to add style information
to content without adding a structural tag, there are a couple new style-specific
HTML tags introduced in this draft. The <div> tag can
encompass large sections of a page, and <span> can be used for a few words or
characters.
next page»