<!DOCTYPE html> <html> <head> <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>styles.css
body { background-color: powderblue; } h1 { color: blue; } p { color: red; }
<h1 style="color:blue;">A Blue Heading</h1> <p style="color:red;">A red paragraph.</p>
<----100px---->Padding 100px + solid border
<----100px---->This element has margin 100px
body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; }