How to Embed Almost Anything in your Website

Learn how to embed almost anything in your HTML web pages from Flash videos to Spreadsheets to high resolution photographs to static images from Google Maps and more.

Embed RSS Feeds in Web Pages

Go to this page, replace the feed URL with your own feed, use the default color scheme or change it to something else and then click Get Code. You’ll get a JavaScript snippet that can be easily placed in the sidebar of your blog.

If you like to embed feeds from multiple sources, merge all of them into one using Yahoo Pipes and then pass the combined feed to the Google Gadget. You can also use RSS widgets like WidgetBox or YourMinis that are done in Flash and not JavaScript.

Embed High Quality or HD YouTube Videos

To embed a high resolution version of YouTube clip in your web pages, first make sure that “Watch in High Quality” or “Watch in HD” link exists next to the YouTube player as most videos are only available in standard format.

Next copy the YouTube embed code and append &ap=%2526fmt%3D18 (for high quality) or &ap=%2526fmt%3D22 (for 720p High Definition) to the URL value of the movie parameter in both instances (see YouTube HD example).

Embed MP3 music and other Audio

If you like to embed audio files like songs, podcasts or interviews in your web pages, use Yahoo! Media Player – its a free Flash music player that automatically detects all links to MP3 files in the current web page and turns them into a music player.  Another alternative is the Google MP3 Player.

To embed other audio formats like 3GP, Midi, Real or Windows Media, it may be a good idea to convert these files into MP3 using Zamzar so that they play on almost any web browser.

Embed Flickr Photos and Slideshows

To embed an individual Flickr photograph in your blog, click the "Share This" link (available next to the photo title) and choose embed it. Flickr requires that the embedded image should link back to Flickr and this built-in embed option automatically takes care of that requirement. (see example)

To embed a Flickr photo slideshow in your web page, open any Slideshow in a new page (see example) and choose "Customize HTML" from the embed option (see example). Here you can specify a custom size for your Flash slideshow so that it fits just right into your web page.

Embed Picasa Web Albums

When you open a photo album inside Picasa, click the link in the right sidebar that says "Link to this album" and choose "Embed Slideshow". You can use the same approach to embed individual photographs that are available inside Picasa.

Embed Events from Google Calendar

Click the drop-down arrow next to any Google Calendar and select Calendar settings. Open the Google Embeddable Calendar Helper program by clicking the customize button and choose elements that you want to display or hide in the calendar.

Embed Very Large Photographs

To embed really large images in your blog, you may either use Deep Zoom or the Google Maps viewer. These programs break your photographs in small tiles and you can even pan / zoom across these images very similar to the default interface of Google Maps.

Embed Charts and Graphs in Web Pages

My personal favorite is Zoho Sheet – any chart created inside Zoho Sheet can be published as an external image without exposing the full spreadsheet. If you are interested in creating charts with low volume of data, use Google Charts. 

Embed GIF Animations and Screencasts

GIF animations (see example) are a perfect way to embed short screencasts in web pages as they require no plugins and auto-play inside feed readers. You should upload GIF files to your Flickr account as it preserve all the frames while lot of other image hosting website will drop anything after the first frame.

Embed Chat in your Blog

If you like to chat with visitors who are currently on your site, get the chat widget from Meebo Me and place it in the sidebar of your website. Visitors show up in your Meebo buddy list so you can strike up a conversation, answer questions, or just keep tabs on guests. Also see some more options to embed chat in blogs.

Embed Word Documents

Upload your document to Scribd and they’ll give you the embed code in Flash. Scribd supports both doc and the new Office 2007 docx format in addition to Open Office documents. Even Barack Obama is using Scribd to upload his public documents and upcoming plan.

Embed PowerPoint Presentations

While the popular choice is Slideshare, you should also consider using Issuu (best web application) for presentations that are either large or formatted in the form of magazines or catalogues (see example). The only downside is that Issuu accepts PDFs so you need to convert the presentation before uploading onto Issuu.

Embed Spreadsheet Data

Both Zoho Sheet and Google Docs allow you to publish a range of cells from a spreadsheet into a web page but the embedding process in Zoho is less complicated – select a range and choose "Publish" from the contextual menu to embed that range into your web page.

Embed Adobe PDF Files

To embed PDFs in a web page, you can either use Issuu (for magazine style PDFs) or Scribd for PDFs has either have lot of text or have a top-to-bottom reading layout similar to Word documents.

Embed Flash (SWF) or Flash Video (FLV)

The best option to embed Flash content is via swfobject. It improves the overall user experience by providing alternatives in case Flash is missing and your Flash content also becomes more searchable. This tutorial has all the files and other details to help you get started with SwfObject 2.

Related: How to Embed FLV Flash Videos

Embed LinkedIn Profile

If you wish to display your LinkedIn profile in the sidebar of your blog, try LinkInABox. People (site visitors) can read a summary of your LinkedIn profile without leaving the site.

Embed Google Maps in Web Pages

Embedding a Google Map in your website is now almost as easy as adding an image – just open the Static Maps wizard, search for location that you want to embed and specify the dimensions of your map. They’ll provide a simple URL that actually points to a static image of that map.  

Embed Another Webpage in your Blog

If you like to embed another website into your web page, your best bet is an IFRAME tag also known as an Inline Frame. Just set the SRC value to the address of the web page that you want to embed into your current HTML document. You could try IFRAMEs for inserting live search results from Google into your web page without having to worry about APIs.

Embed Windows Media or QuickTime movies

While it is possible to embed mov or wmv videos in web pages directly using the OBJECT tag, I recommend that you put these videos onto blip.tv and then embed them in web pages as Flash video.  That’s because your visitors can then play the video without extra plugins and two, they always have the option to download the video in the original format from blip.tv servers.

Embed Other Fonts in Web Pages

Most web pages use universal fonts like Arial, Times New Roman or Verdana since they are installed on most computers and hence your web pages will render correctly. If you want to try something different and render pages in fonts like Microsoft Calibri or Adobe Garamond Pro that are only available on some machines, all you need is sIFR – it lets you use almost any font for your web pages using JavaScript + Flash and is perfect for writing “newspaper style” headlines.

Embed your Lifestream in a Web Page

You have a presence on YouTube, Flickr, Twitter, Last.fm, Facebook, Amazon and a dozen other online places. It can get really tough for friends to track you at so many places so what you should do is create an account at FriendFeed, import all the different services that you use and then use the FriendFeed Badge to embed your lifestream activity on your main site. You can also create Lifestream with Google Reader.

Related tutorial: How to Embed Video in PowerPoint

Find this article at: http://www.labnol.org/internet/how-to-embed-in-html-webpages/6365/

Tags: , , Internet

Reader Comments

Wiki of embed :))

That is a thorough list. I am sure it will be useful to many people. Thanks!

To make things go viral, almost all online services now offer some way to embed a snippet on your blog/page. However, I have seen people using them indiscriminately to make the pages look ugly, flashy and taking ages to load.

Probably you should also have written a word of caution against overdoing things :)

Thanx for this wonderful article keep rocking………..

Hey this is a very good list. I’ve bookmarked this

Awesome – just awesome! Thank for putting this together. Bookmarked and stumbled.

How about Skype?

Another great way to embed an mp3 player is with the Delicious Playtagger.

link

It’s easy to use and unobtrusive. I use it on my own site.

iFrames are great, but as a word of warning if you do it with Javascript, the iFrame content will not be indexed by search engines, if that matters to you or your client.

This is a very informative and useful list. Thank you for this awesome list.

Useful tips, thanks! If you want to embed mindmaps, check out the following link

Great list, lots of good, simple examples. Thanks from Adelaide, sunny South Australia

Very useful info shared, Amit! Keep it going!

Great post! I would like to know whether there is a way to embed Google Adsense code in the middle of a post in blogger. Currently it is possible to do so only in the side bars and the bottom of the post.

Thanks for mentioning Issuu as a fave app again! We really appreciate it. While it’s true that we used to be PDF only, we started supporting quite a few document formats, including PowerPoint, a while ago (full list: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP, and SXI).

I followed your link above to best web apps, but I couldn’t find us on it, but we appreciate the mention anyway.

Keep inspiring us.

Is this all? LOL

This will save a lot of people a lot of time!

Regards Marcel

Embedit.in is another option to embed documents, images & text. Thanks for the good list which is having a bookmarking worth @ link

i have done almost everything with wordpress really its awesome

I am loving you!! Thanks so very much. I am working on a project today that actually involves an iFrame (not my choice) and I tagged this page yesterday! A lot of these will be helpful to me in the next few months.

Fantastic info! Thanks!

Thanks a lot! many usefull tips that save me a lot of time

Thank you for this article. I’m in the beginning stages of blogging and I am reading everything out there to improve my knowledge. The more info I read, the better. :)

how to add a VOIP free call dialer to my blog so my visitors can try free phone calls? is there ANY way?

Excellent list Amit! I am bookmarking this page.. :)

This is by far the most useful post i have seen lately in your blog.
Thanks for the information.

We are trying to embed our blog postings into our MySpace page…have not seen any tool or method that facilitates this, aside from retyping it! HELP!

A new alternative to sIFR is available: cufón.

Moe details link

How about embeding videos from different services into one player?

Embedr.com supports YouTube, Vimeo, Dailymotion, Blip, MySpace, and more.

What an article. so vast so informative. If I start to read and analyze this article it will almost take be three days to complete it but by this time i will have all the necessary info on how to perfectly do embedding in HTML.

sIFR is soo out of date – modern sites can use embedded trueType or ODF fonts.



Google Custom Search