The code below has correct basic style:
<style>
html {
background-color: lightYellow;
}
li {
font-family: 'Trebuchet MS', sans-serif;
}
h1 {
color: blue;
}
</style>
The rules are:
CSS Formatting Guide
- Put 1 space before the {
- Put 2 spaces before property names
- Put 1 space before property values
- Put a ; after property values
- A blank line separates each CSS rule
It is very importan to write good code, so don't forget these rules.
No hay comentarios:
Publicar un comentario