title: Can I add a hyperlink using pure CSS?
body: <p>I'm trying to create a hyperlink using pure CSS. (I can't add an <code>&lt;a&gt;</code> tag in the HTML.) In my code below, I'd like to add a link around the image with just CSS. Is that possible?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="target"&gt;
    &lt;img src="http://placehold.it/400x400"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>.target img {
    cursor: pointer;
    content: "href(http://www.w3schools.com)"
    /*content: "url(http://www.w3schools.com)"*/
  }
  </code></pre>