New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# style

Defines a container to add CSS within a web page.

Example: Copy

<style type="text/css">
  .important {
    color: red;
  }
</style>

type

Defines the MIME type of the style block.

"text/css"

This is for CSS content.