Create a gist now

Instantly share code, notes, and snippets.

anonymous /index.html
Created Oct 10, 2016

What would you like to do?
<!DOCTYPE html>
div:not(:target) {
display: none;
div:target {
display: block;
<a href="#tab-1">Tab One</a>
<a href="#tab-2">Tab Two</a>
<div id="tab-1">
Tab one contents
<div id="tab-2">
Tab two contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment