0

By adding the code #:~:text=[TEXT TO HIGHLIGHT] after a URL, the text is highlighted by browsers (I think all, except firefox). For example, see how the "Top question" text is highlighted on the stackoverflow home page: https://stackoverflow.com/#:~:text=Top%20Questions

I think it's some kind of special CSS for browser. Does anyone know how and where this feature is documented?

enter image description here

4
  • FWIW, this does absolutely zilch for me in both Safari and Chrome. Commented Nov 30, 2022 at 15:37
  • try editing the example url, removing "https://" before "stackoverflow.com/#:~:text=Top%20Questions", please, and then press return Commented Nov 30, 2022 at 15:39
  • try this: google.com/#:~:text=google the word "google" in the upper left is highlighted Commented Nov 30, 2022 at 15:41
  • 1
    All of yours links don't work for me, but adding it to the current URL with some text that appears on this page works… Anyway, I linked to an explanation above. Commented Nov 30, 2022 at 15:42

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.