CSS target pseudo class
You can style an element with css if its id attribute matches the window location’s hash using the :target
pseudo-class:
#content {
display: none;
}
#content:target {
display: block
}
See hidden content
Keep is secret!
Keep it safe!
https://developer.mozilla.org/en-US/docs/Web/CSS/:target
Tweet