HTML Tag STYLE

Description

Specifies the style sheet for the page.

Syntax

<STYLE
DISABLED
MEDIA=SCREEN | PRINT | ALL
TITLE=text
TYPE="text/css"
>

Parameter

Description

DISABLED

Used to disable an element. This attribute prevents an element from receiving the focus, and causes the element to appear "grayed out."

MEDIA

Describes the output device for the document. A value of "PRINT" does not affect the on-screen layout. Default value is ALL.
SCREEN --Output is intended for non-paged computer screens. PRINT-- Output is intended for paged, opaque material and for documents on screen viewed in print preview mode.
ALL --Applies to all devices.

TITLE

Used to provide advisory information.

TYPE

Indicates the type of style sheet.

Example

<STYLE>
BODY {background: yellow; color: white}
H1 {font: 6pt Arial bold}
P {font: 15pt Arial; text-indent: 0.5in}
A {text-decoration: none; color: blue}
</STYLE>

Remarks

This element may be used within the BODY tag. Both the start and end tags are required.

Related Topics

SUP