Do you highlight the search term?

Updated by Michelle "MishManners®™" Duke 5 months ago. See history

123
<introEmbed body={<> When implementing search on a website, do you know that it is best to highlight the search terms in the page body? </>} />

Search is a common feature in websites, and one you will most likely have to implement at some stage. When search returns a list of items, it is useful to highlight the search terms where they appear in the results.

Image

❌ Figure: Bad example - Search for items with these tags

Image

✅ Figure: Good example - Search results have their relevant tags highlighted

Acknowledgements

Drew Robson
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star