Home arrow HTML arrow Page 3 - Keepin' Up With The News
HTML

Keepin' Up With The News


Whether you run a simple, static website or a dynamic database driven portal, the key to keeping your visitors coming back is in the constant updating of information. In this article Mitchell shows you how to utilize a dyanamic news source for your site.

Author Info:
By: Mitchell Harper
Rating:  stars stars stars stars stars / 0
November 02, 2001
TABLE OF CONTENTS:
  1. · Keepin' Up With The News
  2. · Our news source: MoreOver.com
  3. · Setting Up Your Dynamic News Feed
  4. · Conclusion

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Keepin' Up With The News - Setting Up Your Dynamic News Feed
(Page 3 of 4 )

Now that we've got the code for our news stream via email, how do we go about adding it to our site? Simple. You'll notice that the code is a mixture of cascading style sheets, JavaScript and HTML, meaning that we can pretty much place the code anywhere between the <body> and </body> tags of our web page. As an example, type the following HTML into notepad and save it as mynews.html (ignoring the line numbering of course).

<html>

<head>

<title> My News Feed </title>

</head>

<body bgcolor=”#ffffff”>

<h1>My News Feed</h1>

</body>

</html>


Notice how I've intentionally left a line blank? This is where we will paste the code that will display our dynamic news feed. Simply place your cursor on line seven, copy the news feed code from the MoreOver email and paste it in. Save the file and preview it in your browser. You should get something that looks like this:

Our completed web page with the news feed code


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials