martin2k

The STYLE Tag

HomeForumTutorials Tags:
 
 

Name

Style

Description

This tag defines the styles for the document.  It is used within the HEAD tag.

If you want to use the same styles for more than one page, you should use a style sheet.  This is linked to the document using the LINK tag.

See How to use Style Sheets for information on how to define styles.

Attributes

TYPE

Needs to set to "text/css".

Related Tags

This tag is used within the HEAD tag.

Example

Code

<style>
<!--
h1 { font-family: Arial; font-size: 24pt; color: #0000FF; font-weight: bold }
h2 { font-family: Arial; font-size: 18pt; color: #000080; font-weight: bold }
hr { color: #FF0000 }
-->
</style>


Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Thursday 09 November 2006 10:05:17 PM -0000.