So the specific functionality I'm looking for is a link on one page (e.g. drupalsite/home) leading directly to a specific section of another page (e.g. a section on drupalsite/otherpage).
I believe that to implement this I need to use hash based navigation such that the content I want to link to is has it's css class name preceded by a hash (pound sign or number symbol) <div class="#mydiv">
and is linked to by including the hash referenced content in the href attribute of an anchor tag. Such that <div class="#mydiv">
on page drupalsite/mypage via <a href="/mypage#mydiv">
.
Will this work without out of the box with just HTML changes? Or is additional JavaScript configuration necessary?
I know that more specific and fluid implementations will necessitate JavaScript and jQuery, but I want to know if the core HTML works without conflicting with Drupal's internals.
<p id="my_target">Link me</p>
and those links like<a href="/some-page#my_target">Click me</a>
work without any problem in Drupal core. It is just HTML.