adding alt text to pictures added in text widget

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Could someone please explain this to me in simplistic form, I have tried to do this numerous times

I think I am doing something wrong......When I edit the text widget, then html editor, there is a lot of code there already, I tried putting the alt text code after this but ended up with a small box under the image with the alt text there!

Should I delete all the html code in the editor and replace it with just the alt text code.

I am scared to do this incase I lose all the info

Photo of Jon Garrod

Jon Garrod

  • 15 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Gop


  • 7473 Posts
  • 2115 Reply Likes
Hi Jon,

Here is an example code for an image of yours. I've removed the padding statements because you are not using them and they just clutter the appearance and padding is not obligatory.

I also notice that you have two height statements on your images. It's only reading the first one so in the following example I've stuck with that.

<img style=" MARGIN: 4px; WIDTH: 346px; HEIGHT: 274px; " src="resources/patio.jpg" alt="whatever phrase you want">