title: Don't understand how to show the caption when hovering image
body: <p>I'm having some difficulty with this example:</p>
  
  <pre><code>&lt;img src="image1/&lt;?php echo $file; ?&gt;.jpg" style="width:500px" /&gt; 
  &lt;p id="caption"&gt;&lt;?php echo $caption; ?&gt;&lt;/p&gt; 
  </code></pre>
  
  <p>I'm trying to get the caption with CSS when hovering the image.</p>
  
  <p>I tried to use <code>a img{hover;}</code> and <code>p {hover;}</code>.</p>
  
  <p>Is there a way for me to get the caption when hovering the image? The example is in PHP and if it was in CSS or Javascript maybe I could search for it, but so far I can't find a solution for this.</p>
  
  <p>I appreciate any explanation &amp; examples.</p>