html link to pdf

Solutions on MaxInterview for html link to pdf by the best coders in the world

showing results for - "html link to pdf"
Salvatore
29 Aug 2017
1Since you have not clarified for us whether you are using a local host or just viewing the text file in the browser I will assume the latter.
2
3In this case, you would have your anchor tag and in the href attribute put the location of the file
4
5<a href="C:\Users\Shannon Myers\Documents\Biology-DNA\teen_time_report.pdf">ok</a>
6In the above example I started from my C: drive and went from there. Also you could do it as follows:
7
8<a href="Resources\teen_time_report.pdf">ok</a>
9This should link to the pdf file that you have in mind, as long as the resources folder and html file are in the same folder