Wednesday, 4 June 2014

HTML "style" tag

Function:

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

Difference between HTML and XHTML:

NONE

Example:

<head>
<style type="text/css">
  h1 { color:#F1F1F1 }
</style>
</head>

Attributes:

AttributeValueDescription
typetext/cssSpecifies the style sheet language as a content-type (MIME type).
mediascreen
tty
tv
projection
handheld
print
braille
aural
all
Specifies the device the document will be displayed on.

Standard Attributes:

AttributeDescription
dirSpecifies the direction of the text
idDocument wide identifier
langSets the language code.
xml:spaceSets the language code.

No comments:

Post a Comment