Electric Type

Multimedia

About Us

News

Help

 
HTML Basics
-------------------------
this article for free. 
-------------------------

Pages:
1  A Cougar in Your Cache?
2 Linking
3  Styles
4 Scripting
5 Caching Cougar
6 Forms
7 The RFC Collection (Tables, Uploads, and i18n)

A First Look at HTML 4.0/Cougar

Page 3 — Styles

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:

    <p STYLE="color: green">
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»


Tutorials Home  

CSS Reference  

Regular Expressions  

Image Filtering  

Adding Site Search  

Image Maps  

Browser Detection  

Fundamentals of XSSI  

FTP Tutorial  

HTML 4.0  

User Blogs

Screen Shots

Latest Updates

Contact Us

Valid HTML 4.01!
Valid CSS!

Breadcrumb

© ElectricType
Maintained by My-Hosts.com
Site map | Copyright | Disclaimer
Privacy policy | Acceptable Use Policy
Legal information.