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>
<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