Created
November 5, 2013 14:45
-
-
Save exarcheia-web/7320090 to your computer and use it in GitHub Desktop.
3 ways to style a page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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