target pseudo class in css3

Basically the :target pseudo selector in CSS matches when the hash in the URL and the id of an element are the same. we can define ‘:target’ for general purpose. We can also use it with other css selectors to define specific matching rules. So if we¬†have a http://www.abc.com/index.html#myHash and in the css we have…