+ 2

What is the error?

<html> <head> <title>selettori</title> body{ background-color:blue; } </head> <body> <h1>la mia pagina </h1> <p>aiuto</p> </body> </html>

5th May 2017, 9:24 PM
Valeria
Valeria - avatar
5 Answers
+ 10
the css rule should be in a <style> tag like this: <style> body{ background-color: blue; } </style>
5th May 2017, 9:27 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 7
You forgot the style tag ! <html> <head> <title>selettori</title> <style> body{ background-color:blue; } </style> </head> <body> <h1>la mia pagina </h1> <p>aiuto</p> </body> </html>
5th May 2017, 9:26 PM
SzabĂł GĂĄbor
SzabĂł GĂĄbor - avatar
+ 4
you missed the style tag as by@szabo
5th May 2017, 9:28 PM
MR Programmer
MR Programmer - avatar
+ 2
i think it's more easy to control you code at all using an external CSS file.
17th May 2017, 8:58 AM
Gaspar Pedro
Gaspar Pedro - avatar
0
You forgot to use the <style> tag. Do you have any experience with css? I would advise using an external css instead of imbutyl on the page. But goes of your preference
6th May 2017, 3:42 AM
Elykelwin Costa
Elykelwin Costa - avatar