Link to index page of website

You can just do this: <a href=”https://stackoverflow.com/”>Home</a> Any href preceded by a slash is relative the root directory. It should be noted that when viewing a webpage from a local hard drive in a browser, this will cause the link not to function.

Linking from a web page to a specific section (anchor) in PDF document

What seems to work in general is variant #4 but using the number of the page as in actual division into pages in the PDF document, in this case http://www.scala-lang.org/docu/files/ScalaReference.pdf#page=31 The PDF document has page numbers that start from the content proper, after the table of content, but that numbering differs from the one to … Read more

How to force fully download txt file on link?

Download file when clicking on the link (instead of navigating to the file): <a href=”https://stackoverflow.com/questions/21088376/test.txt” download>Click here</a> Download file and rename it to mytextdocument.txt: <a href=”https://stackoverflow.com/questions/21088376/test.txt” download=”mytextdocument”>Click here</a> The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink. This attribute is only used if the href attribute is … Read more