Created
December 28, 2021 01:47
-
-
Save tail-call/3cabf63ae1bf6b8ff748298e608bcf22 to your computer and use it in GitHub Desktop.
Inspired by https://john-doe.neocities.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sections demo</title> | |
<style> | |
section { | |
display: none; | |
} | |
section:target { | |
display: block; | |
} | |
</style> | |
</head> | |
<body> | |
<header> | |
<ul> | |
<li><a href="#a">A</a></li> | |
<li><a href="#b">B</a></li> | |
<li><a href="#c">C</a></li> | |
</ul> | |
</header> | |
<main> | |
<section id="a"> | |
wow this is interesting | |
</section> | |
<section id="b"> | |
look at all this content | |
</section> | |
<section id="c"> | |
mmmm pretty nice isn't it | |
</section> | |
</main> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment