what is wrong
<!DOCTYPE html>
<html>
<head>
<title>Sexy background color!</title>
</head>
<body>
<h3>Favorite Football Teams</h3>
<body style="background-color:brown ;"> <ol>
<ol style="background-color:yellow;"> <li>The Hawthorn Football Club
<li>San Franscisco 49ers</li>
<li>Barcelona FC</li>
</ol>
</body>
</html>
i recommend to reset the code, then add the style attribute to the existing body and opening tag, for example:
<!DOCTYPE html>
<html>
<head>
<title>Sexy background color!</title>
</head>
<body style="">
<h3>Favorite Football Teams</h3>
<ol>
<li>The Hawthorn Football Club
<li>San Franscisco 49ers</li>
<li>Barcelona FC</li>
</ol>
</body>
</html>
see how you can just add the style attribute to the body opening tag? you can do the same for <ol>
, but no need to create additional opening tags.
1 Like
system
closed
#3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.