CSS :target

One interesting CSS pseudo selector is :target.  The target pseudo selector provides styling capabilities for an element whose ID matches the window location’s hash.  Let’s have a quick look at how the CSS target pseudo selector works! View Demo The HTML Assume there are any number of HTML elements with a given ID: <h2 id=”section1″>Section … Continue reading CSS :target