/    Sign up×
Community /Pin to ProfileBookmark

what would code be for rss feed?

I want to add an rss feed to my html page…

  • 1.

    What would an example code look like that goes in body of page?

  • 2.

    What would example “style sheet” code look like that goes between <head>… </head>

  • Much appreciated!

    to post a comment
    PHP

    5 Comments(s)

    Copy linkTweet thisAlerts:
    @Stephen_PhilbinSep 14.2007 — Are you sure you mean RSS? You don't put RSS in HTML; you generally have RSS as a seperate document on its own. I have my own [url=http://www.stephenphilbin.com/]web development blog[/url] that I'm building and I've made an [url=http://www.stephenphilbin.com/?media=RSS2]RSS feed for my blog[/url]. They both have the same web address, but that's not common for an RSS feed. I just built it that way because of how I'm putting my site together. They are still two completely seperate documents. The RSS feed is essentially a reformulation of the content of the page it represents into another, seperate, format.

    I haven't added any styling to the feed either (well not at the time of writing this post but I plan to as soon as I can). How the RSS feed appears when no style information is provided is browser dependent. IE and Firefox like to mess around with it, but that's not standard behaviour. You could provide style information for your feed with standard CSS in the same way as you would for a web page. The only major difference is how you link the CSS stylesheet to your RSS feed. Instead of using a <link> or <style> element inside a <head> element, you address it with an <?xml-stylesheet?> processing instruction. Although I think I'd prefer to use XSL to style the RSS feed, rather than CSS.
    Copy linkTweet thisAlerts:
    @jayscriptauthorSep 14.2007 — I want to have news on my html page.

    I'm just confused on what the code lines would look like and where they go- that's why I need examples. What goes in <header>, <body>, etc.

    Thanks again for you help.
    Copy linkTweet thisAlerts:
    @Stephen_PhilbinSep 14.2007 — Oh right. You want to take the information from an RSS feed and place them as HTML content in your page? If that's the case, then you'll need to do it with a server side language (or at least I don't know of any other good way of doing it). If you post back with which server side language(s) you have available then I can move this thread to the appropriate forum section where you can get much better help.
    Copy linkTweet thisAlerts:
    @jayscriptauthorSep 14.2007 — Exactly!

    I guess Server side language would be php-to-html code.

    Which section should I be in then?
    Copy linkTweet thisAlerts:
    @Stephen_PhilbinSep 15.2007 — Well PHP if that's what your server side language is.

    [i]Moved to PHP section.[/i]

    I'm sure someone will be able to help you here.
    ×

    Success!

    Help @jayscript spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.1,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...