style

Purpose

Container for style rules.

Contained by

Attribute

Attribute Description Type Default Options Use
type The type of stylesheet xs:string text/css    optional 

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2">
  <head>
    <title>style</title>
    <style type="text/css">
      .highlight {
        color: red;
      }
    </style>
  </head>
  <body>
    <p>I'm <span class="highlight">red</span>.</p>
  </body>
</html>

Related topics