a {
...
}
h1, p {
...
}
a:hover {
...
}
<p class="red-color text-center">This is red text!</p>
.red-color { color: red; }
.text-center { text-align: center; }
then you have declarations!
body {
background-color: lightblue;
}
p:first-child {
color: red;
/* This is a single-line comment */
text-align: center;
}
/* This is
a multi-line
comment */
Basic Declarations
Property
Options
text-align
left | right | center | justify
color
red | blue | black etc
background-color
red | blue | black etc
font-size
16px | 2em etc
font-family
"Segoe UI", sans-serif etc
border
1px solid red
font-weight
normal | bold
Deploy
Share your cool new site with everyone you care about
$ npm install -g @angular/cli
$ ng new my-app
$ cd my-app
$ ng serve --open