Example:
<p id="toSection"> sample text </p>
<a href="#toSection">click</a>
<p> sample text </p>
I want the link on the second line jump to the third line, but not to the first. Is there a way to do that with the href attribute?
I’ve tried using different combinations of the href value, but nothing seemed to work.
New contributor
James is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.