Skip to content

Instantly share code, notes, and snippets.

@exarcheia-web
Created November 5, 2013 14:45
Show Gist options
  • Save exarcheia-web/7320090 to your computer and use it in GitHub Desktop.
Save exarcheia-web/7320090 to your computer and use it in GitHub Desktop.
3 ways to style a page
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Example page</title>
<link rel="stylesheet" href="style.css">
<style>
h1 {
font-size: 30px;
color: hotpink;
line-height: 1.8;
}
p {
font-size: 13px;
color: #999;
margin-bottom: 18px
}
</style>
</head>
<body>
<h1 style="font-size:30px;color:hotpink;line-height:1.8">Hello world</h1>
<p style="font-size:13px;color:#999;margin-bottom:18px">Lorem ipsum dolor sit amet, consectetur.</p>
</body>
</html>
h1 {
font-size: 30px;
color: hotpink;
line-height: 1.8;
}
p {
font-size: 13px;
color: #999;
margin-bottom: 18px
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment