Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Development
HTML and CSS
HTML coding links using notepad ++
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="VBService, post: 5177082, member: 95965"] Have you tried? [CODE=html]<!-- The link will open in the same window --> <p> Lorem ipsum <a href="https://www.w3schools.com/html/html_links.asp">link</a> dolore sit ament. </p>[/CODE] or [CODE=html]<!-- The link will open in a new window --> <p> Lorem ipsum <a href="https://www.w3schools.com/tags/att_a_target.asp" target="_blank">link</a> dolore sit ament. </p>[/CODE] or [CODE=html]<!-- The link to navigate in the same window --> <style> html, body { margin: 1rem; padding: 0; scroll-behavior: smooth; } h2 { scroll-margin-top: 1rem; } a { color: red; } a:hover { text-decoration: none; } .blank { height: 200vh; background-color: whitesmoke; } </style> <h1>Lorem ipsum</h1> <h2 id="top-page">Lorem ipsum 1</h2> <p> Lorem ipsum <a href="#bottom-page">bottom</a> dolore sit ament. </p> <p class="blank"></p> <h2 id="bottom-page">Lorem ipsum 2</h2> <p> Lorem ipsum <a href="#top-page">top</a> dolore sit ament. </p>[/CODE] [/QUOTE]
Verification
Post reply
Forums
Development
HTML and CSS
HTML coding links using notepad ++
Top