WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Use of SAMP to highlight search results

for

From: Patrick H. Lauke
Date: Oct 28, 2010 9:33AM


I'd say the "mark" element sounds more appropriate

http://www.w3.org/TR/html5/text-level-semantics.html#the-mark-element

On 28/10/2010 11:04, Pete Fairhurst wrote:
> Hi everyone,
>
> I'm Pete Fairhurst, a web developer with 11 years' experience based in
> Bristol, England.
>
> I was wondering what people think of my idea to use the SAMP element to
> highlight matching text in a list of search results?
>
> http://www.htmlcodetutorial.com/_SAMP.html
>
> On the face of it, SAMP sounds like it might be a better element to use than
> EM, which is how I currently highlight matching text in search results.
>
> What do you think? Does this sound like a good alternative, or should I be
> using a different element entirely to EM or SAMP?
>
> Thanks in advance!
>
> - Pete
>
> ~~~~
>
> "Haste in art is almost always vulgarisation." H.G. Wells
>