style
El elemento
style
debe colocarse en el elemento de tipo
head
y contiene el código CSS3 que define la apariencia de la página.
1 | <!DOCTYPE html> |
2 | <html lang="es"> |
3 | <head> |
4 | <meta charset="UTF-8"> |
5 | <meta name="viewport" |
6 | content="width=device-width"> |
7 | <title>CSS</title> |
8 | <style> |
9 | h1 { |
10 | color: yellow; |
11 | background-color: blue; |
12 | } |
13 | |
14 | p { |
15 | color: white; |
16 | background-color: black; |
17 | } |
18 | </style> |
19 | </head> |
20 | <body> |
21 | ... |
22 | </body> |
23 | </html> |