Doubts about HTML and CSS

Asked

Viewed 68 times

-1

Hello, I’m starting now and I have the following question: When creating a page with HTML and CSS, I added the icons to access my social networks (example: Instagram, Linkedin, etc.) but just added the image. How do I turn this icon image (example: Instagram) into a link where I can click and be directed to the page?

I thank you in advance for your help and attention. Hug!

  • Edit your question with your code, so it’s easier to give you an answer that suits you

2 answers

4

You can use the tag <a> with a href containing the link to your page, thus:

  <a href="fb.com/seu_perfil">
     <img src="seu_icone_aqui">
  </a>

0

You can include your image tag within a hyperlink tag, as in the example below:

<a><img /><a/>

Browser other questions tagged

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