# Example - How to use iframe to display PDF a PDF file

If you want to display the content of index.html directly on a webpage, using the `<iframe>` tag is a great choice. This method is simple and compatible, and is suitable for most modern browsers. For example, the following code:

`<iframe src="index.html" class="iframe-pdf-viewer" style="width:100%; height:600px;border: none;border: 1pt solid #ccc;" title="Flyingbee PDF Viewer"></iframe>`

Alternatively, you can directly open index.html too.

Flyingbee Software Co., LTD, Powered by Flyingbee PDF SDK