Q. Yugalkishore is looking for a simple solution to help him embed RSS feeds from Reuters website into his HTML web pages.
A. While there are tons of scripts that convert RSS feeds into Javascript*, I recommend using Google Gadget Creator for adding feeds to web pages – it’s easy as well as customizable.
*If you are looking for a non-Javascript solution, get one of these Flash based RSS widgets from Yourminis or WidgetBox.
Step 1: Copy the URL of that RSS feed to the clipboard (make sure you copy the location of the feed, not the website).
Step 2: Append the feed URL to this string- http://gmodules.com/ig/creator?url=
Confused ? Let me illustrate that with a quick example. Say the RSS feed address is http://feeds.labnol.org/labnol, then our string becomes:
http://gmodules.com/ig/creator?url=http://feeds.labnol.org/labnol
Step 3: Open this new link in your web browser, adjust the dimensions of the gadget, change the border color and finally click "Get the Code" button.
<script src="http://gmodules.com/ig/ifr?url=http://feeds.labnol.org/labnol&synd=open&w=320&h=200&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
Place this Javascript code anywhere in your web page where you want the RSS items to be displayed.
Your site visitors can now scan the Reuters news headlines without leaving your website.
Related: Create RSS Feeds from Any Website
Find this article at: http://www.labnol.org/internet/tools/embed-rss-feeds-add-html-websites-javascript/2515/

Reader Comments
Thanks again for the information. Currently I use the Google Gadgets news widget, where you can also display news for most countries with headlines…
Written by Michael on 03.05.08
Simplepie.org offers a PHP RSS parser that you can use to embed feeds on the server-side instead of the client side.
this offers better caching and thus better performance from those pages for the end-user
Written by Ayush Saran on 03.05.08
Thanks, this led me to the Google Feed Gadget that really helped me out.
Happy weekend,
Paula
Written by Paula on 03.07.08
Thanks for posting. was useful for me
Written by ashish on 03.10.08
This is really useful, especially for those of us still limited by Blogger. Their RSS feeds only allow for up to 5 line items, but this provides and excellent work-around if you want to have up to — say 10.
Written by Ken Hanscom on 03.17.08
RSS is just one of many ‘weak links’ of mine. It looks so very complicated, yet you Amit know to explain it in a very simple and precise manner. It is a pure pleasure to read your posts, especially because they are so short, yet so rich and precise and very useful for every day life.
Written by curt on 05.04.08
ok, this is going sound stupid, evey time i try to embed the google gadgets code, it doesnt work, where do i insert, obviously under body, is there some othere tag or somthing????
Written by nolan on 05.09.08
@nolan: You select ‘Add a page element’ on the layout page of your blog…and select the ‘element that says ‘HTML script’ or something similar to that. Now paste your script here (in the body box) and give it some title (in the title box). Click ok/done > save your layout and you’re good to go. The feeds should appear on your blog now.
Written by DWiner on 05.13.08
Thanks so much for putting this article on about inserting RSS feeds in a simple way. This is very good for getting good contents plus the added benefit for repeat views. Thankyou
Written by Aryabhatta on 06.08.08
Do you know how to add a rss in .php format to .html webpage??
If i only insert a Rss with JS format, serach engine will not read it. So the best way is insert rss in .php format. So search engine will read it.
But the problem is i can’t do that. Please your advice
Regards
Nurlenita From Indonesia
Written by nurlenita on 07.24.08
To Nurlenita…
May be my little experience can help you. Few month ago, i have same problem with you. Yes, you right. You can’t insert rss script in .php script to page based in .html
PHP scripts do not automatically work on html pages. If you have an HTML or (.HTM) based site, in order for PHP scripts to run on your .htm or .html pages,
you only have a 2 options;
1. For Apache Servers Edit your .htacess with add this code ===>>> AddType application/x-httpd-php .htm .html <==== Then Add the php code directly to your html pages.
2. For Non apache servers such as Windows or IIS servers, you must creating the SSI include and file.
But sorry, I don’t have any experience with SSI Includes. You can ask the detail about SSI Includes with you webhosting provider. They must be help you. But my advice, you should try
the option #1 to make rss appear in .html or .htm page because 95% servers now using apache server.
Thanks. Hope this little information can help you.
Written by deni on 08.17.08
Вакансии строительной компании “Лог-Хаус”
Требуется архитектор на полный рабочий день.
Направление деятельности: проектирование деревянных домов из оцилиндрованного бревна и клееного бруса.
Знание AUTOCAD. Полная занятость.
Расположение: м. Тушинская.
Оформление по Т.К.
Заработная плата по результатам собеседования.
Written by loghousesent on 09.04.08
Thank you very much. This is the best solution that i am looking for.
Written by önder on 09.12.08
It’s very interesting if we talk about rss feed. I love use rss feed on my site.!
Every i check my AW STAT panel, I see Most of my visitor click my rss feed (News) link. And SE spider (google, yahoo, msn, etc), come to my website every day to spidered my web pages even your website has PR0
Why …?? Because when i use rss feed, the news always change every day (we get fresh content) automatically,
not every day too because when i refresh my web pages the rss feed news was change. And surely my web visitor like it. And The most important, this is totally free and Seo Friendly.
As we know too… Fresh constantly changing content gets spidered by the search engines more often than websites that have had the same content for month or even years. And i can get it totally free when I use news rss feed.
Believe me… Adding RSS feeds to your web pages (On php format not java script) will make your visitors come back more often. And it’s SEO Friendly too. Okay, try it. And you will get prove what i say. :)
Written by permana on 09.24.08
Thanks… I’ve managed to put an RSS feed upon my website in about 10 mins. Excellent article. Plus I’m impressed with me! Thanks for the help
Written by Andy on 10.03.08
Hey, your post is awesome. After i read your posting about rss feed and read some comment here. Then i go to google to search free rss feed reader to put on my blog. After found free rss feed reader, and i put it on my blog haa… My site more beauty… I can use rss from almost news publishing site. Many thanks to Mr.Amit Agarwal and other to post and answer for this topic. Thanks again.
Written by Gary on 10.23.08
I guess if you can run php, it’s better to use simplepie. It has caching and parsing is done in the server side, so you can do away with the dirty work of javascript.
People of little know-how have their browsers turned off javascript by default. Nevertheless, oftentimes javascripts cause some popup whether you should allow it or not in your browser.
Written by deuts on 10.29.08
I wonder if this will work if the code is put into a database record, so the feed can be displayed on a dynamic page?
Written by Jill on 11.19.08
I tried to use this and it failed, the google gadget just displays an empty box. I tried to embed this feed- link
It seemed to good to be true when I found this post, guess it was…….. If anyone can tell me why this doesn’t work I will be right pleased.
Written by John on 12.07.08
This is a terrific idea and I hope it works, but it appears it may no longer work. I also get empty boxes just as Jill mentions above. Any workarounds for this Amit? Thanks!
Written by Mike Reynolds on 12.19.08
Use rss feed is one of the best choice for me to make my site/web page search engine friendly. I usually use Rss from yahoo, reuter and google. It can update hourly. And sure… I use in .php format. Not javascript. Thanks for your share mr amit.
Written by Rio on 01.09.09
Hello there –
I did everything you said. But when I view the page online, it shows a white box with no content. The google icon is under the box. But there is nothing inside….Why?
Thanks for the help. -Ginger
Written by Ginger Leigh on 02.09.09
Props to Michael for the Simplepie.org tip. Works like a charm. Great asset for displaying RSS content on your site.
Written by joe on 04.08.09