색깔 넣기

결과물

hex (color:#ff0000)
RGB (color:RGB(255,0,0))
Color Name (color:red)


소스코드


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #hex {
            color: #FF0000;
        }
        #rgb {
            color: RGB(255,255,0);
        }
        #name {
            color: cadetblue;
        }
    </style>
</head>
<body>

    <div id="hex">
        hex (color:#ff0000)
    </div>
    <div id="rgb">
        RGB (color:RGB(255,0,0))
    </div>
    <div id="name">
        Color Name (color:red)
    </div>
</body>
</html>