How to put image in a <thead> list

Asked

Viewed 98 times

0

I am a beginner in programming and am putting together a list using thead and I was wondering how can I put an image inside the <th>.

My code below:

<thead>
     <tr>
         <th>#</th>
         <th>Rádio Vale FM</th>
         <th>04.362.624/0001-00</th>
     </tr>
</thead>

And how he’s showing up on the website: inserir a descrição da imagem aqui

I want to put an image there where the #. How can I do that?

  • 1

    Thus <th><img src="URL_DA_IMAGEM" /></th> ?

  • 1

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

  • @Noobsaibot!

1 answer

2


Add the tag <img src="minha-imagem.jpg" alt="texto-alternativo"> within your tag <th>

Remember to add the full path to your image folder in the attribute src

  • what is this alt=''alternative text''?

  • 3

    Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by visually impaired people), or if the user chooses not to display images or if the browser is unable to display the image because it is invalid or an unsupported type. In such cases, the browser can replace the image with the text defined in the alt attribute of this element.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.