Internal Styles

suggest change

CSS enclosed in a <style> element functions like an external stylesheet, except that it lives in the HTML document it styles and therefore applies only to that document. Place it in the <head> when the rules should be available before the body is shown. The element is also valid in the <body>.

<head>
    <style>
        h1 {
            color: green;
            text-decoration: underline;
        }
        p {
            font-size: 25px;
            font-family: 'Trebuchet MS', sans-serif;
        }
    </style>
</head>
<body>
    <h1>Hello world!</h1>
    <p>I ♥ CSS</p>
</body>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents