Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

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

<a href="#content">See hidden content</a>

<table id="content">
  <legend>Keep is secret!
    <td>Keep it safe!