Hello readers here we are back with a new article. Hope you are gaining information from our blog. Explore all the contents and we need your support.

To make your blog or website more user-friendly and attractive you probably need to embed URL's for proper explanation of your content. Embeding other websites adds new features to your blog.

Consider for example your blog does not come with a feature to run HTML and CSS codes but codepen.io  website has features to run these so if u write these codes in the website and embed it to your website, users who visit can see the result of running the code and allow user's to edit it.

Another example is if you need to promote article of your blog and you made a Youtube video on it. If you provide the link for your video, the user need to go to youtube to see your video but if u embed that they can watch it in your own article itself.

Yes!! It is possible you can emebed them using a HTML tag <iframe>

You may like this:

How to use <iframe> tag?

<iframe> is a HTML tag which allows you to embed URL's in your website. In writing the code for <iframe>  you need to specify the link to whatever you are willing to embed using attribute 'src=' . Where you should enter the link after it.

In this article i will embed few of the social media links and show you the demo.

Syntax:


You can customize the appearance of the iframe also. If you want the frame full width along the length of your post. use this syntax below.


I have given example by embeding one of my blog's post.


You can put a black border by the below code:


Demo:


How to embed Youtube?

Get the link of your video and copy the text present after "youtube.com" or "youtube.me". 
Example: In "https://youtu.be/q80t4VtBScE" copy "q80t4VtBScE" and use the below code


Demo:


How to embed facebook?

Go to the post you want to embed and click 3 dots on top right corner and lick embed and copy the code in iframe section. 



Demo:


Stay tuned for many more articles.

Thanks for reading.

2 Comments

Post a Comment

Previous Post Next Post