How to use internal CSS to define style for a single HTML page

1 Answer

0 votes
<!DOCTYPE html>
<html>
    <head>
        <style>
            body {background-color: lightgrey;}
            h1   {color: purple;}
        </style>
    </head>
    <body>

        <h1>Text text text</h1>

    </body>
</html>

 



answered Dec 6, 2018 by avibootz
...