Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

<STYLE ...>

  • TYPE: style language
 
  • MEDIA: type of media this style applies to

<STYLE ...> designates a set of style rules. Browsers do not display the contents of <STYLE ...> but rather use those contents to set the display of other elements in the page.

See Break the <FONT> Habit for a tutorial on using styles.

<STYLE ...> should always include the TYPE attribute, which should in most situations be set to "text/css". Follow the tag with a comment opener so that older browsers and many search engines won't see your styles code. After the style rules put the end comment code and the end tag. So, for example, a minimal set of styles code might look like this:

<STYLE TYPE="text/css">
<!--
H2 {color:green}
-->
</STYLE>

<STYLE ...> only goes inside the <HEAD> element. It does not go in the <BODY ...> element.

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire