-1
Well, I have this doubt because I have read several articles from certain websites and many of the authors do not place the attribute id
in the elements what ends up happening is that if you find sections and want to create Bookmarks on your page referencing to these sections of the site has no way, many of the sites use more classes.
As, for example, below when clicking the link the current page will be directed to a page of MDN on the API Geolocation and the page will jump to a certain section (thanks to the attribute id
):
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API/#Concepts_and_usage" target="_blank">Geolocation API</a>
Okay, but what if there was no attribute id
as on many sites and yes an attribute class
, an element without attribute and etc, would have to jump through the sections of the site to create the Bookmark, without the attribute id
or not?
With Js it would be possible, but there is no Pq, the internal anchor is something old and well accepted...
– hugocsl
@hugocsl, it’s not that friend! the issue is on sites that do not use the attribute
id
(in case not my and yes third party) as I would for the link (from my site) skip to certain sections (from third party site) without the attributeid
.– felipe cardozo