1<h1 style="color:blue;text-align:center">This is a header</h1>
2<p style="color:green">This is a paragraph.</p>
1<html>
2<head>
3<style>
4 h1 {color:red;}
5 p {color:blue;}
6</style>
7</head>
8<body>
9
10<h1>A heading</h1>
11<p>A paragraph.</p>
12
13</body>
1<!-- style inside of an html element -->
2<p style="color: rgb(255, 0, 255);">I am a unicorn</p>
3<!-- style as an html element -->
4<style>
5 /* Put in CSS */
6</style>
1<html>
2 <body>
3 <!-- BODY HTML -->
4 </body>
5 <head>
6 <!-- HEAD HTML -->
7 </head>
8 <style>
9 /* CSS */
10 </style>