2
How to adjust this image inside the border, in HTML 5.
HTML
<figure class="foto-legenda">
  <img src="_imagens/coz21web.jpg" width="830">
  <figcaption>
    <h3>Marcenaria Anderlopes</h3>
    <p>Realizando sonhos</p>
  </figcaption>
</figure>
CSS
figure.foto-legenda {
    position: relative;
    border: 8px solid white;
    box-shadow: 1px 1px 4px black;}
figure.foto-legenda figcaption {
    opacity: 0;
    position: absolute;
    top: 0px;
    background-color: rgba(0, 0, 0, .3);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    transition: opacity 1s;
    height: 100%;
    width: 100%; }
figure.foto-legenda:hover figcaption {opacity: 1;}

Welcome to Sopt. Please post the code with your attempt, we can help from there. Remembering that it is always good to read [Ask] and if possible make a [tour] to understand how the community works ;)
– Diego Rafael Souza
Put your HTML code so you can better understand your question. You can use a service like Pastebin
– Gerson Salvador