HTML, CSS, URL, Markdown and other
This page contains some things that I’ve wanted to do.
How can I link to a specific sentence in a webpage?
Have you ever wanted to jump to a specific place in a webpage?
Often you can use the id=some-location and jump to it that way.
Other times you need to fall back to a text serach. This causes the browser to search for the text you specify and jump the browser page to that location in the page.
I wanted a link to GRC’s Steve Gibson saying What could possibly go wrong.
To do that I needed to write this link.
https://www.grc.com/sn/sn-822.htm#:~:text=what%20could%20possibly%20go%20wrong
The syntax is #:~:text=What%20could%20possibly. If spaces exist then you’ll
need to change each space to the characters %20.
So you start with
https://www.grc.com/sn/sn-822.htm#:~:text=what could possibly go wrong
And change it to
https://www.grc.com/sn/sn-822.htm#:~:text=what%20could%20possibly%20go%20wrong