Add External Website or PDF to Blogger Post Using Iframe

Dinesh
0

In this post, i focus on making reading easy for you. You can added PDFs directly to your blog post so user can view them without needing to download anything. Just scroll through the document or use the toolbar to navigate, everything you need is right there on the page. This way you can stay on the site and interact with the content easily.


Table of Contents

Why Use Embedded PDF On Your Blog?

By embedding PDFs directly into the blog, it is easier for you to access important documents without downloading them. You can view guides, forms or resources right in the blog post. This keeps them engaged on your website while giving them quick access to essential content.


Html Code for iframe

HTML Code

    <iframe loading="lazy" width="100%" height="800" src="#"></iframe>
  

Guide To Setup

Setting up an embedded PDF in your blog is simple

  1. step 1:

    Upload your PDF File to a cloud service like Google Drive.

  2. step 2:

    For to get the embed link, open the file then click on "Share" and create a link for embedding.

  3. step 3:

    Copy the embed code from Google Drive by selecting the "Embed Item" option.

  4. step 4:

    Paste the copied PDF embed code into src="#" using the HTML code provided below in your Blogger post page.


Purpose of the iframe Element

The iframe tag is used to display another webpage or content inside your current webpage. It allows you to embed external pages without redirecting visitors away.


Understanding the iframe Structure

The iframe element is written using opening and closing tags. Everything inside the iframe is loaded from the URL provided in the src attribute.


Using the src Attribute

The src attribute defines the webpage or file that will be shown inside the iframe. You need to replace the # symbol with a valid URL example : https://yo.fan/dineshleone to display real content.


Full Width Display

The width=100% value makes the iframe stretch across the full width of its container. This helps the embedded content look responsive on different screen sizes.


Setting the Height

The height=800 attribute controls how tall the iframe appears on the page. You can increase or decrease this value based on the content being displayed.


Lazy Loading for Better Speed

The loading=lazy attribute improves page performance by loading the iframe only when it is needed. This helps reduce initial page load time.


Embedding External Content Safely

Iframes are commonly used to embed videos, maps, tools or external pages. Always ensure the source link is safe and trusted before embedding.


SEO Benefits

Using a responsive iframe helps improve user experience on mobile devices. Lazy loading also helps with SEO by improving page speed and performance.


My Thought

Embedding PDFs in your blog makes it easier for your readers to view content without needing to download anything. It keeps your blog looking professional and interactive. It helps you share important resources more effectively with your audience.

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!
To Top