Have you ever seen (as a part of a URL) something like this? #:~: Well, that's something! This part of url is called URL Text Fragments. And it is very useful! How It Works? You certainly already know that, the # symbol (called a hash or fragment identifier) separates the main URL from a fragment that references a specific section of the page. Traditionally, # links to an element with a matching id attribute. URL Text Fragments syntax starts with the fragment directive :~: followed by text= and the text you want to highlight. The #:~:text=MyText syntax enables you to link directly to specific text on a web page without requiring the page author to add an ID. When someone clicks your link, the modern browsers automatically scroll to and highlight the target MyText, making it instantly visible. The basic format looks like this: https://example.com/article#:~:text=Your%20Target%20Text For text ranges, you can specify start and end points: https://example.com/article#:~:text=start t...
not only java blog