Highlight search terms automagically with JavaScript and mark
For a while I’ve been wondering how to demo the HTML 5 mark element. It’s quite a funky little element, acting a bit like a highlighter pen, to draw attention to some text. The spec defines it The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context
Go here to see the original:
Highlight search terms automagically with JavaScript and mark