Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

PLUS you get:

  • FREE Website Builder
  • FREE Blog
  • FREE Starter Web Page
  • FREE Email Account
  • & much more! (Total value $123 for FREE!)
Get your FREE hosting today! >>

HTML style Tag

Print Version
 

The HTML style tag is used for declaring style sheets within the head of your HTML document.

Each HTML document can contain multiple style tags. Each tag must be located between the head tags.

Example
<head>
<style type="text/css">
  h1 { color:#000099 }
</style>
</head>
Attributes:
Attributes specific to this tag:
AttributeDescription
nameDefines the name of the parameter.
typeSpecifies the style sheet language as a content-type (MIME type).
mediaSpecifies the device the document will be displayed on. Possible values:
  • all
  • braille
  • print
  • projection
  • screen
  • speech
Other Attributes:
AttributeDescription
dirSpecifies the direction of the text
langLanguage code
titleSpecifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
Try it yourself! HTML Editor


Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!