Head: Style Tag

The <style> element is used to define style information for an HTML document. It is also called an internal stylesheet where CSS details are contained. With this element, you can specify how HTML elements should render in a browser:

HTML file: Displayed by browser:
<style>
body {background-color:yellow;}
p {color:blue;}
</style>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>

This is a heading

This is a paragraph.

The <style> element is contained in the HEAD element, if your document has one. If not, it is listed above the BODY tag.

Back button Table of Contents Next button