Mr. Do![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
MAME Art Editor
|
|
|
Reged: 09/21/03
|
Posts: 4876
|
Loc: California
|
|
Send PM
|
|
|
Neat... learned new HTML today... link to any text on a webpage
#397960 - 02/15/24 09:55 PM
|
|
|
|
|
Re: Neat... learned new HTML today... link to any text on a webpage
[Re: Mr. Do]
#397963 - 02/16/24 01:01 AM
|
|
|
Thanks. I always like learning new tricks like this for my own pages.
|
cyberdman
|
|
|
Re: Neat... learned new HTML today... link to any text on a webpage
[Re: Mr. Do]
#397964 - 02/16/24 05:44 AM
|
|
|
> You can link to specific text on a webpage, even if the page doesn't have an anchor > in the page code for the text you want to link to. > > Just add #:~:text= to the end of the normal link of the page > > https://web.dev/articles/text-fragments
Only for Chrome and Edge. Doesn't work with Firefox.
|
|
|
Mr. Do![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
MAME Art Editor
|
|
|
Reged: 09/21/03
|
Posts: 4876
|
Loc: California
|
|
Send PM
|
|
|
Re: Neat... learned new HTML today... link to any text on a webpage
[Re: Robbbert]
#397965 - 02/16/24 11:39 AM
|
|
|
> > You can link to specific text on a webpage, even if the page doesn't have an anchor > > in the page code for the text you want to link to. > > > > Just add #:~:text= to the end of the normal link of the page > > > > https://web.dev/articles/text-fragments > > Only for Chrome and Edge. Doesn't work with Firefox.
Hmm... that's odd... 'cause it's also referenced on Mozilla.org
https://developer.mozilla.org/en-US/docs/Web/Text_fragments
|
RELAX and just have fun. Remember, it's all about the games.
|
|
|
Don’t use Chrome-only features
[Re: Mr. Do]
#397970 - 02/16/24 03:54 PM
|
|
|
That’s a Chrome feature, not part of any standard (draft here, not accepted by any standards body), and doesn’t work in Firefox or Safari. Please don’t rely on non-standard Chrome features. It’s getting to the point where web sites relying on Chrome features that don’t work in other browsers are as bad as IE6-dependent sites used to be. Help keep the web open by adhering to standards and supporting multiple browsers. Don’t give Google de facto control of the web.
|
|
|
Mr. Do![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
MAME Art Editor
|
|
|
Reged: 09/21/03
|
Posts: 4876
|
Loc: California
|
|
Send PM
|
|
|
Wasn't planning to...
[Re: Vas Crabb]
#397976 - 02/16/24 08:55 PM
|
|
|
> That’s a Chrome feature, not part of any standard (draft here, not accepted by any > standards body), and doesn’t work in Firefox or Safari. Please don’t rely on > non-standard Chrome features. It’s getting to the point where web sites relying on > Chrome features that don’t work in other browsers are as bad as IE6-dependent sites > used to be. Help keep the web open by adhering to standards and supporting multiple > browsers. Don’t give Google de facto control of the web.
Don't worry... I didn't have any plans for that on my site or anything... just thought it was cool, for example to share a link to someone else, to direct them to a specific area of a longer page.
I guess you didn't see my reply to Robbbert below... I thought it was a thing, because the first link I found for it was on Mozilla's Developer site:
https://developer.mozilla.org/en-US/docs/Web/Text_fragments
(I just hadn't scrolled all the way down the page to check browser compatibility).
I'm actually very adamant on my end, that everything pass W3C checks.
[And of course, as I write that, I go check, and I've got a bunch of little errors that need fixing 😓]
[Updates are coming... promise... I know it's been 3+ years... no one is more upset about that than I am]
|
RELAX and just have fun. Remember, it's all about the games.
|
|
|
Re: Neat... learned new HTML today... link to any text on a webpage
[Re: Robbbert]
#397987 - 02/17/24 04:42 PM
|
|
|
Bummer. Oh well nice idea in theory.
|
cyberdman
|
|