I am making a website, and there is something I need to complete it. I need one part of a link to be the same, and part of it different. The first part should be the URL of the deployment (example: website.github.com or random.pages.dev) and the second part staying the same (example: /thispartwillstaythesame.) If there is a different way to do this, or I am missing something, please let me know.
I know that the anchor should be something along the lines of <a href=something"/thispartstaysthesame". I am learning about coding as of now, and I am struggling with this problem for quite some time. Thanks for any help!
CodePudding user response:
I dont know exactly what you mean, but I think you could use template literals for your case. template literals
CodePudding user response:
Please modify your question. Use code or snippets to describe your question that will help us to understand more easily. You can use "target" attribute in anchor tag which will allow you to stay on this page or you can open new page in browser. Just add target attribute in your anchor tag to tay or new page in browser.
Example:
<a href ="your link" target = stay on page / open new page in browser" > part link</a>
I think it is affordable solution according to your question. Further more, kindly.modify your question