0

I have a div with background image which is clickable. The div doesn't have any content and I have provided a title to that.

How can I enable the iPad VoiceOver feature to read the title for that div?

If not title, can we use any ARIA attribute to make VoiceOver read that attribute?

unor
  • 92,415
  • 26
  • 211
  • 360
jitenderd
  • 181
  • 3
  • 15
  • "I have a div with background image which is clickable. The doesn't have any content " — Don't do that. Use an `` with an `alt` attribute. – Quentin May 18 '16 at 12:21

2 Answers2

0

you can add some dummy text to that div and set

font-size:0px

in your CSS

It would read out the text inside the div so keep it relavent.

Syed Is Saqlain
  • 360
  • 1
  • 3
  • 13
0

You can use aria-label

<div aria-label="Say this word" />
siriwatknp
  • 203
  • 2
  • 8