Skip to content

Instantly share code, notes, and snippets.

Created October 10, 2016 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/19bc553e68e93a7b2215fe3bb4ec76fb to your computer and use it in GitHub Desktop.
Save anonymous/19bc553e68e93a7b2215fe3bb4ec76fb to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
div:not(:target) {
display: none;
}
div:target {
display: block;
}
</style>
</head>
<body>
<a href="#tab-1">Tab One</a>
<a href="#tab-2">Tab Two</a>
<div id="tab-1">
Tab one contents
</div>
<div id="tab-2">
Tab two contents
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment