SyntaxStudy
Sign Up

<style>

tag

Contains CSS style rules that apply to the document. Usually placed in <head>.

Syntax

<style> CSS rules here </style>

Example

html
<head>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }
        h1 {
            color: #333;
        }
        .highlight {
            background-color: yellow;
        }
    </style>
</head>