This is called linking to text fragments. It is supported by all major browsers, you can specify the text in various ways, you can have more than one text fragment and you can even use CSS to customize the styling of the text fragments.
Reference on MDN: https://developer.mozilla.org/en-US/docs/Web/URI/Fragment/Text_fragments