Skip navigation

How to use accessible highlighting in HTML?

151 Views 0 Replies Latest reply: Jan 24, 2013 1:11 AM by kronung RSS
kronung Calculating status...
Currently Being Moderated
Jan 24, 2013 1:11 AM

I developing HTML5 web app and have a case when some parts of sentence should be highlighted. For example, "Your search for blac was adjusted to black".


In markup i have something like that:

<span> You search for <b>blac</b> was adjusted to <b>black</b></span>

 

When VoiceOver is turned on it reads a 4 parts: "You search for", "blac", "was adjusted to ", "black".

 

Another case:

User search for "black" and on search result see category "Black/White movies" and word "Black" should be highlighted, but in that case VoiceOver reads two parts: "Black" and "/White movies". That's not very comfortable...

 

How can I use highlighting to avoid such separating?

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.