How to embed a PDF viewer on a page with HTML?

Spread the love

To embed a PDF viewer on a page with HTML, we use an embed element.

For instance, we write

<embed src="my-home.pdf" width="500" height="375" />

to embed the my-home.pdf file on our page.

We set the width and height of it by setting the width and height attributes to values in pixels.

Leave a Reply

Your email address will not be published. Required fields are marked *