Good day everyone.
I was given a pdf file by my teacher and she want's it to be in a HTML link. But I had confusion in opening a pdf in html link. I hope for an answer. Thank You and God Bless.
How can you put a PDF file in a HTML link?
Hi Alex A Gonzales,
Just follow my steps and where I write “Your File” there you should write the file name of the PDF. Mind it, you must keep your both html and pdf file in the same folder.
Code for you-
<html>
<head>
</head>
<body>
<a href=" Your File.pdf"> A PDF File</a>
</body>
</html>
I think this code will help you for your assignment. Just try, it must be working.
Best of luck
Peter A May
How can you put a PDF file in a HTML link?
Dear user,
To put a PDF file in a HTML link, firstly, you have to upload your PDF file to your website. Then you have to add the link in the existing HTML document. For your help, I have attached the code file with the solution. That will surely work for you.
Hope this will help you.
Thank you.