Rules

Secret ingredients to quality software

Edit
Info

Do you highlight the search term?

Created on 07 Aug 2014 | Last updated by Shigemi Matsumoto on 07 Aug 2014 05:59 AM (over 6 years ago)

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.

2014 08 07 15 48 11 before compressor

Figure: Search for items with these tags

2014 08 07 15 47 15 after compressor

Figure: Search results have their relevant tags highlighted

Drew RobsonDrew Robson

We open source. This page is on GitHub