Highlight Keywords in Search Results with mark.js

Improve your website's usability by mimicking Google’s cached-page highlighting technique whereas searched keywords are marked when the page is rendered.

Highlight Keywords in Search Results with mark.js

mark.js is a jQuery plugin that allows you to dynamically mark search terms or custom regular expressions when a match is found.

The internal search engine of a website can be mined for valuable metrics and insights on what the readers are looking for. It is in this regard to make sure that they find what they are looking for even after hitting the search button.

One good way to make sure to find out what they are seeking for in the search results is by having the search terms highlighted on the target page to save them from scrolling down back and forth just to find the exact part of the page. Apart from it, it can also be used to highlight the keywords in the article.

Highlight Keywords in Search Results with mark.js

FEATURED POST: Highlight Keywords in Search Results with mark.js