How to Install a News Feed in a Web Page

A website news feed is a real simple syndication (RSS) feed that is updated as new content from the source is generated. Various news sites, including Yahoo! News and Google News, generate RSS feeds for website developers to use. Installing a news feed in a web page allows designers to keep their sites updated with new, fresh content automatically.

Instructions

    • 1

      Find a news feed to use on your web page. All major news websites and news aggregators, including Google News and MSNBC News, make their news feeds available to the general public. Right-click on the news feed link of your choice, and copy the link.

    • 2

      Install a Javascript code on your site that will call up the news feed and publish it on your page. Open the web page file in a text editor or your favorite website editor (e.g. Adobe Dreamweaver). Between the <BODY> and </BODY> tags, create a new Javascript tag by typing the following code: <script type="text/javascript"
      src="FEEDINFO"</script>

    • 3

      Replace FEEDINFO in Step 2 with the link to the news feed that you copied in Step 1. Save the page and re-upload it to your server. Your webpage will now include the news feed automatically anytime someone accesses the site. The feed will be updated continuously whenever the source updates its news.

    • 4

      Consider installing a widget-based news feed for a more complex and graphics-heavy display of the news feed. Various companies, such as RSSinclude and Widgetbox (see Resources), offer free widget creators. Copy the link that you found in Step 1 into the RSS widget creator, and follow the on-screen prompts to generate a simple Javascript code. Copy and paste into your webpage, and re-upload it to the server just as you did in Step 3.

Tips & Warnings

  • Use a news feed on your website to keep the page fresh, and ensure your readers keep coming back to read more.

Related Searches

References

Resources

You May Also Like

Related Ads

Featured