Friday, June 19, 2020

How to highlight text in a web page


When you share a URL to a long article, sometimes you want to highlight certain text to make your point.

Chrome has the text highlight feature.

For example, a plain link to a Wikipedia article.
https://en.wikipedia.org/wiki/Coronavirus
If you want to highlight a short sentence, you can put #:~:text= at the end of URL and followed by the text to be highlighted.
https://en.wikipedia.org/wiki/Coronavirus#:~:text=their%20origin%20in%20bats

If you want to highlight a long paragraph, the URL may become too long to share. In this case, you can put start text and end text with a comma in the middle. That is, #:~:text=startText,endText.

https://en.wikipedia.org/wiki/Coronavirus#:~:text=Many%20human,finally%20to%20humans
For more details, visit the the link.

No comments:

Post a Comment

How to turn on dark mode in Windows 10

Dark mode is the latest UI design trend. Windows 10 also jumps on the bandwagon. It keeps light mode as the default. To enable dark mode, op...