Embedded Stylesheet

To embed CSS style definitions directly into your web page use the code

<style type="text/css">
  ...
</style>

It is actually possible to leave out the "text/css" part - at the expense of strict compliance - and save a few bytes per document. CSS rules have been discussed at length elsewhere on this site. If you are using an embedded stylesheet merely in order to temporarily override style settings in an external stylesheet, remember to put the external stylesheet declaration first.

Jump To...

Colophon