CSS
How CSS Works:
Example of CSS:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: lightblue;
}
h1 {
color: navy;
font-size: 36px;
}
p {
font-family: Arial, sans-serif;
color: darkgray;
}
</style>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first styled web page.</p>
</body>
</html>Breaking It Down:
CSS can be added to a web page in 3 ways:
Example of External CSS:
Key CSS Properties:
Last updated