Skip to content

Instantly share code, notes, and snippets.

@courtney-scripted
Created September 12, 2016 15:07
Show Gist options
  • Save courtney-scripted/ca890436bafaa8c0fc6ac8c6cfa05d39 to your computer and use it in GitHub Desktop.
Save courtney-scripted/ca890436bafaa8c0fc6ac8c6cfa05d39 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=ca890436bafaa8c0fc6ac8c6cfa05d39
<!DOCTYPE html>
<html>
<head>
<title>Classes and IDs</title>
</head>
<body>
<h2>This should have a green background</h2>
<p>This too</p>
<p>And this.. but also with a "Comic Sans" font</p>
<hr>
<h2 class="blue">This should have blue background</h2>
<p class="blue">This too</p>
<p id="italicID">And this.. but with an italic font-style too</p>
<hr>
<p id="redID">This should be red!</p>
</body>
</html>
h2 {
background-color:green
}
p {
background-color:green;
font-family:Comic Sans MS
}
.blue{
background-color:blue
}
#redID{
color:red;
background-color:white;
}
#italicID{
font-style: italic;
background-color:blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment