jeudi 15 août 2019

How can I link to a specific element of an external website WITHOUT using id? (i.e. NOT using "#some-id" at the end of my anchor tag's href url)?

I understand you can link to specific id attributes by doing the following:

<a href="http://www.external-website.com/page#some-id">Link</a>

But what if there are no ids in the external html doc to target?

Seems strange that there wouldn't be a way to link directly to an element using selectors such as class or another attribute.

Please let me know if you know a way to implement this.

Thank you!




Aucun commentaire:

Enregistrer un commentaire