'How do I set the background color for a website in PyCharm?

I am trying to set the background color for web pages in PyCharm. Everywhere I look for lessons or information it says it should be don like this:

from turtle import color

import background


def div(rating1200):
    {
    background-color:
}

and the I should be able to chose the color. But the program says: cannot find referance to '-' in background.py.

Am I making some fundamental error or do I need to import more? I could not find any import for '-'.


full code of several pages:

The Sylvan Woodshad.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>The Sylvan Woodshad</h1>

<div class="rating1200">
    Lessons for players with a rating below 1200
</div>

</body>

</html>

first page.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Chess page</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <h2> learning or improving your chess game</h2>

    <div class="rating1200">
        Lessons for players with a rating below 1200
    </div>
    <div class="For rating 1200-1500">
         Lessons for players with a rating of 1200 to 1500
         </div>
</body>
</html>

styles.css:

from turtle import color

import background


def div(rating1200):
    {
    background-color:


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source