I feel as though this should work. I'm creating a variable in javascript and referencing it in the same file. Can someone explain why this is not working and then show how I can achieve my intended result? I feel as though I'm missing something obvious.
*edit: I forgot to mention that it is important that I use a javascript variable as my color. Sorry.
<!DOCTYPE html>
<html>
<head>
</head>
<body style="background-color:color;">
</body>
<script type="text/javascript">
var color = #555555;
</script>
</html>