Skip to content

Instantly share code, notes, and snippets.

@davidvandusen
Created March 19, 2015 02:19
Show Gist options
  • Save davidvandusen/316179269a2267327e6e to your computer and use it in GitHub Desktop.
Save davidvandusen/316179269a2267327e6e to your computer and use it in GitHub Desktop.
h1 { color: red; }
p { background: #cdf; border: 5px dashed gold; color: green; margin: 2em; padding: 1em; }
p span { font-style: italic; }
span { background: darkslategray; }
strong { background: yellow; font-weight: normal; }
ul span { text-decoration: underline; }
.subpar { background: hotpink; text-decoration: line-through; }
<!doctype html>
<html>
<head>
<title>Demo</title>
<link rel="stylesheet" href="w1d2.css">
</head>
<body>
<header>
<h1>Welcome to Demo Town</h1>
</header>
<section>
<p><span>Lorem ipsum</span> dolor sit amet consecteteur adipising elit..</p>
<ul>
<li><strong>Blah</strong></li>
<li><span style="background: chartreuse" class="mediocre">blah</span></li>
<li><span class="subpar">blah</span></li>
</ul>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment