HTML - Rss Feed Reader Not Validating
Hello I've posted here before. As some of you may or may not know I'm still fairly new in web designing. Recently I started making a small website for my friend who wanted a homepage for his small gaming community. While making this webpage I kept checking the validators (for css and markup) and it all came up fine. I read the sticky on validators and since I have no frames or anything my best bet was to use the (x)html transitional one:
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Now as i stated before everything was coming up validated until I added a javascript code from rssfeedreader.com. I wanted to display some "latest news" from the news blog I set up and I don't know much about stylizing and displaying rss (even after reading a few pages) so i used that website. After I added it in it came up with a bunch of errors (mostly the ampersand error and the "language=javascript" error). I wanted to know if there was a possible way to fix this? I tried changing the "language=javascript" part into "type=javascript" but the feed stops displaying if i do that.. Similar TutorialsYou can view it here. Any suggestions how to get it are welcome, preferably this particular one. Thanks. Anyone know of an inexpensive and SEO friendly way to display book pages in an online html reader? I am developing a bookstore website where people can read the entire book online before buying, and the option of using an online flash-based PDF reader doesn't work for SEO. In the html format, the books would have to be displayed page by page so people couldn't steal and distribute the entire book easily. Is the only way to do this by programming every page or is there a program, script or compiler that is good for SEO and will do the job cheaply? There are many online libraries that have hundreds of thousands of pages readable online, so how do they do it cheaply? Thanks. I've got a website under construction at www.banffridgeestates.com. On the design plans page (www.banffridgeestates.com/design_plans.htm), I've got 9 thumbs for the user to click on and a PDF file opens in Adobe Reader. But just in case the user doesn't have Adobe Reader or some other PDF viewing application, is there a way for me to program the link so that it detects whether the user has such an application, and to open a JPEG if he doesn't have one? I am using this type of format for my rss feed: <?xml version="1.0" ?> <rss version="2.0"> <channel> <title>Bestsellersworld.com</title> <description>The latest book reviews for Bestsellersworld.com and Mysteries Galore</description> <link>http://www.bestsellersworld.com</link> <item> <title>The 5th Horseman by James Patterson</title> <link>http://www.bestsellersworld.com/reviews/patterson-the_5th_horseman.htm</link> </item> It works fine but I was wonder if there is a way I could add an image cover to the feed and if so how do I do it? Damn, am I needy or what? Could someone tell me why my code is not validating. HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Welcome to Streams of Dreams Fly Shop - NJ's premier fly fishing source!</title> <style type="text/css"> #wrapper {margin: 0px auto; padding: 0px; width: 850px; text-align: center; } #banner {width: 850px; height: 135px; } #banner img {width: 850px; height: 135px; } #menuh {width: 850px; height: 21px; } #menuh ul{margin-left: 0px; padding-left: 0px; list-style: none; float: left; } #menuh ul li{float: left; width: 100%; } #menuh a {height: 1%; font: bold 0.7em/1.4em arial, sans-serif; } #menuh-container { position: center; top: 0; left: 0; width: 850px; } #menuh { font-size: small; font-family: arial, helvetica, sans-serif; width:100%; float:left; margin:0; margin-top: 0; } #menuh a { text-align: center; display: block; border: 1px solid #555; white-space: nowrap; margin: 0; padding: 0.3em; } #menuh a:link, #menuh a:visited, #menuh a:active /* menu at rest */ { color: white; background-color: #003459; text-decoration: none; } #menuh a:hover /* menu at mouse-over */ { color: white; background-color: cornflowerblue; text-decoration: none; } #menuh a.top_parent, #menuh a.top_parent:hover /* attaches down-arrow to all top-parents */ { background-image: url(navdown_white.gif); background-position: right center; background-repeat: no-repeat; } #menuh a.parent, #menuh a.parent:hover /* attaches side-arrow to all parents */ { background-image: url(nav_white.gif); background-position: right center; background-repeat: no-repeat; } #menuh ul { list-style: none; margin: 0; padding: 0; float: left; width: 94.4px; /* width of all menu boxes */ } #menuh li { position: relative; min-height: 1px; /* Sophie Dennis contribution for IE7 */ vertical-align: bottom; /* Sophie Dennis contribution for IE7 */ } #menuh ul ul { position: absolute; z-index: 500; top: auto; display: none; padding: 0; margin: 0; } #menuh ul ul ul { top:0; left:100%; } div#menuh li:hover { cursor: pointer; z-index: 100; } div#menuh li:hover ul ul, div#menuh li li:hover ul ul, div#menuh li li li:hover ul ul, div#menuh li li li li:hover ul ul {display: none;} div#menuh li:hover ul, div#menuh li li:hover ul, div#menuh li li li:hover ul, div#menuh li li li li:hover ul {display: block;} #content1 {width: 850px; height: 20px; vertical-align: top; } #content2 {width: 850px; height: 306px; vertical-align: top; } #content3 {width: 850px; height: 250px; vertical-align: top; } #copyrite {width: 850px; height: 72px; } #copyrite img {width: 850; height: 72px; } .style1 {color: #663333} </style> </head> <body> <div id="wrapper"> <div id="banner"> <img src="Images/Banners/nwbanner.jpg" alt="nwbanner" width="850" height="144" /></div> <div id="menuh-container"> <div id="menuh"> <ul> <li><a href="#" class="top_parent">Home</a> </ul> <ul> <li><a href="#" class="top_parent">Fly Shop</a> <ul> <li><a href="#" class="parent">Rods</a> <ul> <li><a href="#">Thomas and Thomas</a></li> <li><a href="#">Scott</a></li> <li><a href="#">Beulah</a></li> <li><a href="#">Temple Fork</a></li> </ul> </li> <li><a href="#" class="parent">Reels</a> <ul> <li><a href="#">Abel</a></li> <li><a href="#">Mako</a></li> <li><a href="#">Saracione</a></li> <li><a href="#">Hatch</a></li> </ul> </li> <li><a href="#" class="parent">Waders</a> <ul> <li><a href="#">Dan Bailey</a></li> <li><a href="#">Chota</a></li> <li><a href="#">Hodgman</a></li> <li><a href="#">Patagonia</a></li> </ul> </li> <li><a href="#" class="parent">Wading Shoes</a> <ul> <li><a href="#">Chota</a></li> <li><a href="#">Patagonia</a></li> <li><a href="#">Hodgman</a></li> <li><a href="#">Simms</a></li> </ul> </li> <li><a href="#" class="parent">Accessories</a> <ul> <li><a href="#">Fly Lines</a></li> <li><a href="#">Fly Boxes</a></li> <li><a href="#">Nets</a></li> <li><a href="#">Clothing</a></li> </ul> </li> </ul> </li> </ul> <ul> <li><a href="#" >Photos</a> </ul> <ul> <li><a href="#" >Destinations</a> </ul> <ul> <li><a href="#" >Events</a> </ul> <ul> <li><a href="#" >Lessons</a> </ul> <ul> <li><a href="#" >Spey</a> </ul> <ul> <li><a href="#" >Bios</a> </ul> <ul> <li><a href="#" >Contact Us</a> </ul> </div> <!-- end the menuh-container div --> </div> <!-- end the menuh div --> <div id="content1"></div> <div id="content2"></div> <div id="content3"></div> <div id="copyrite"><img src="Images/Banners/copyrightbar.jpg" alt="CopywriteBar" /></div> </div> </body> </html> I want to set up a news section on my website from my forums. Like I have an announcement section that I wanted to link to. How do I do that. Hi, I'm having a little trouble finding out how to do a simple rss feed into an i-frame. I have an blogger account but I tried using a javascript tutorial and what came out on my site was an odd gray box with just the posts headline and a link to the post. is it easier to use the atom xml blogger thing? such http://soniccycling.blogspot.com/atom.xml. I would like the feed to show up as simple html that I can add css to. Can anyone point me in the direction of a tutorial, or something? Thanks in advance for the help. I've done a search on here, and have spent the last week or searching on google, I'm currently building a webpage up which integrates a forum, i want to put a feed on the home page of the site of the latest topics from the forum. The feed address is: feed://guitarprojectuk.forumotion.com/feed/ and the actual website address is: http://www.guitarprojectuk.com I've tried a few on google, and non seem to work, not sure wether its the feed or something i'm doing, so can somebody help me out? Thanks, Tom. Hi there. I currently use a news feed widget from BlastCasta.com on a website for a leading gymnast, however i notice sometimes the news feed covers stories about someone with the same name (ie, they are not relevent to the gymnast at all!) Is there any way at all of using something else/something better? I am completely ignorant when it comes to News feeds/widgets and how to implement them. Any advice would be fantastic. See the current news feed page at http://www.bethtweddle.com/news.html I recently just added an RSS feed to my website, and I was wondering how to update it....Do I have to edit it in Notepad, save it, then upload it again? Also, when you subscribe to an RSS feed on Google, is this "headline" thing supposed to be the most recent story, or is that supposed to be my site name and link to my homepage? I'm very confused, as I added like 10 items to my feed and only 2 show up (one of them taking place of my headline for some reason).......Here's the code: Code: <?xml version="1.0" encoding="US-ASCII"?> <rss version="2.0"> <channel> <title>Celtics Insider</title> <link>http://celticsinsider.webs.com</link> <description>Your #1 Source For Anything And Everything Boston Celtics and NBA!</description> <language>en-us</language> <copyright>Celtics Insider</copyright> <item> <title>This Is Our House</title> <link>http://celticsinsider.webs.com/05February2010.html</link> <description>Eddie House's heroics, coupled with a late defensive surge, helped avoid a loss to the last-place New Jersey Nets.</description> </item> <item> <title>Allen's Key Steal Jump-Starts C's</title> <link>http://celticsinsider.webs.com/03February2010.html</link> <description>The Pierce-less Celtics were too much for Dwayne Wade's Miami Heat. Pierce, sidelined with a foot injury suffered in Monday's game, missed his sixth game of this season.</description> </item> <item> <title>Pierce May Have Broken Foot</title> <link>http://celticsinsider.webs.com/02February2010.html</link> <description>It was apparent after the Celtics' win yesterday that All-Star Paul Pierce was hurt; it is a matter of time before the team finds out just how bad it is. The Celtics star forward tumbled and fell down twice in last nights win.</description> </item> <item> <title>C's End Three Game Skid</title> <link>http://celticsinsider.webs.com/01February2010.html</link> <description>Coming off a three game losing streak, the Celtics came into the Verizon Center determined to win. Monday night, the Celtics showed why they have been the top defensive team in the league since aquiring Kevin Garnett.</description> </item> <item> <title>Bryant's Heroics Sink Celtics</title> <link>http://celticsinsider.webs.com/31jan2010.html</link> <description>Kobe Bryants late jumper with 7.3 seconds left in regulation capped an 11-point fourth quarter comeback for the Lakers, spoiling big nights from Rajon Rondo and Tony Allen.</description> </item> <item> <title>Boston Battles Los Angeles In An Instant Classic </title> <link>http://celticsinsider.webs.com/31january2010.html</link> <description>It may not be the NBA Finals and it may not be Christmas Day, but that doesn't matter much with this game -- the luster is never lost for a Celtics-Lakers game.</description> </item> <item> <title>Celtics Can't Stop Magical Comeback</title> <link>http://celticsinsider.webs.com/28january2010.html</link> <description>The play designed for Vince Carter was being shredded. J.J. Redick stood near midcourt, swarmed by defenders, unable to make the pass with the clock about to run out on an improbable comeback.</description> </item> <item> <title>C's Take On Mavericks Tonight</title> <link>http://celticsinsider.webs.com/18jan2010.html</link> <description>The TD Garden will host a Martin Luther King Day special tonight between two of the top teams in the NBA. The Boston Celtics and Dallas Mavericks, both of whom are coming off of tough losses, will meet at 8 p.m. tonight in a nationally televised game.</description> </item> </channel> </rss> At my current job, i send out html newsletters to subscribers.It has around 8 headings with a brief summary of each.(legal mostly).I have uploaded the newsletter as a webpage on the local website. Now i wanted to create an rss feeds but dont really feel like ive to do more coding to make it rss ready. I read that you have add start item,start desciptions to all headings etc etc. from this site http://www.wotzwot.com/example1.htm Does the above site mean that all rss reader all over go by those rules? IGNORE Is there a way i can create an rss feed.I tried many sites and they do generate the feed but putting it on the webpage to show up doesnt really work nicely. I tried wigitze and currently using rss2html http://rss.budgetwebdesign.org/ website to convert it to html format for better embedding.I have a few legal sites with rss feeds and most of them are in xml format. It;s a lot of work just getting the newsletter to where it is and more work to code it too xml etc. IGNORE One question i have is that, unlike news rss feeds, mine doesnt link up to each heading instead just to the whole html newsletter page on the site. Is there a jumplink involved to that specific heading etc.(i know more coding will be involved but it will be great to have ti that way) Any advice on how to go about this. thanks Ok, Ill change my request. Could someone please put the follow heading on top of this RSS: http://www.urcardworld.com/news.html <img src="http://www.onlineeire.com/images/discusshk/logo.jpg" I seem to be having difficulty in doing so. Also if someone could centre the breaking news so as I would have blank left and right sides that would be great. Thanks again. Any help is very much appreciated. Hi all not sure if this is in the right place but here goes... I need to add an rss feed on to a clients site and have no knowledge of how to do this... I need to get the feed from he http://news.cnet.com/8300-11128_3-54...ag=rtcol;about once the feed is on the site i presume i can style links and backgrounds of divs/iframes? If someone can point me in te right direction or has any words of advice i would really appreciate it! thanks matt Hello, I am trying to add an RSS feed that pulls from about a few sites to http://www.econslt.com/test/index3.html under "Breaking News". I want this to update and conform to about the dimensions on the page 235 x 300. This is also my first RSS so I'm not too sure on the process. What is the best way to accomplish this? The site is ECI, I want to pull from the links at http://www.usa.gov/Topics/Reference_...Security.shtml. So, I want them to display as links under the "Breaking News" section. you click, you go to the article. But, how can I make this also something you can subscribe to? Not sure where to post this as there isn't really a section for XML / RSS. Mods - Feel free to move it to somewhere else i appropriate. I have written an RSS feed which I want to place on a website I'm managing. Here's my code. Code: <?xml version="1.0"?> <rss version="2.0"> <channel> <title>Latest Snooker Table</title> <description>Leamington and District Snooker League Tables</description> <link>http://swweb.frih.net/LDBSA</link> <item> <title>Snooker Tables - 24th May 2007</title> <description> <h2>Premier Division</h2> <table style="font: 10pt verdana, arial;padding:5px;border:1px solid #000;border-collapse:collapse;"> <tr> <th style="text-align:left;border:1px solid #000;border-collapse:collapse;">Team</th> <th style="border:1px solid #000;border-collapse:collapse;">Pld</th> <th style="border:1px solid #000;border-collapse:collapse;">Won</th> <th style="border:1px solid #000;border-collapse:collapse;">Lost</th> <th style="border:1px solid #000;border-collapse:collapse;">Pts</th> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Shades 2nd</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">17</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">2</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">94</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Kenilworth Conservatives 1st</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">16</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">2</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">83</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Nelson 1st</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">10</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">8</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">75</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Cubbington 1st</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">11</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">7</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">67</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Shades 4th</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">8</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">10</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">65</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Harbury 1st</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">8</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">10</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">56</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Windsor</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">10</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">8</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">53</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Warwick Conservatives 1st</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">8</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">10</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">52</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Lillington 3rd</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">5</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">13</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">39</td> </tr> <tr> <td style="border:1px solid #000;border-collapse:collapse;">Harbury 3rd</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">19</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">4</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">14</td> <td style="text-align:center;border:1px solid #000;border-collapse:collapse;">20</td> </tr> </table> <br /> <br /> <b>Related Link</b>: <a href=http://swweb.frih.net/LDBSA/s_tables.php>http://swweb.frih.net/LDBSA/s_tables.php</a> </div> </description> <link>http://swweb.frih.net/LDBSA/s_tables.php</link> </item> </channel> </rss> Now I want to simply update this file each week by changing the date in the title, and obviously update the table positions etc. I have tested this, and although the news readers I am testing in download the original message. When I updste the message and re-upload it to my web server, the readers will not download the new updated message. Is it because they think it's the same message as previously? Is there a setting I can code within the <item> tag that will let readers know it has been updsted? Or maybe giving the items an ID, which I can increment each time, and therefore telling the readers that it's a new version of the file? I want to just update this each week, upload it to the server and know that people who've subscribed to it will get the new message. I have tested this using Outlook 2007 and Thunderbird 2.0 The feed can be accessed from http://swweb.frih.net/LDBSA/snookertables.xml I am setting up a newsletter.I have validated it and have this one annoying error. document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag Now, I dont want to use css since as im not sure how many email programs will pick it up..so to be safe im using just the basic font tag system. I get the above error from this example. <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <P>Testing testing </> </font> I also tried putting a style in the body but the outlook doesnt pick it up,well mine anyways since its outlook 2000. any advice thanks I need to make sure my site is validated with XHTML but i don't think Dreamweaver is doing it right. I made one page and it said it was all good but i left some span tags open. It never mentioned that though. So how do i validate in Dreamweaver against XHTML? Where do i check what it validates against? In the Validate menu it says "If no DOCTYPE is detected, validate against" then has a list of HTML 2, 3, 4, XHTML 1..etc Does that mean i need to remove the DOCTYPE that's in the code or just make sure it's the right one I'm validating againt? Thanks for any help. I am finishing up a section of my site and I am validating it now and correcting all the areas. I have one section that I am having problems with and not sure how to correct... http://www.mesquitechristmas.com/loc...action=promote FYI, I am aware of the error at the top. This is a restricted page so I removed the session so it can be made viewable by the general public. This is the error I am getting.... http://validator.w3.org/check?uri=ht...idator%2F1.591 The second error is because of the first, so how do I go about fixing the first error so it will validate. Tidy is no help and I can not find any information on how to correct this. -Thanks Hi I have a problem with rev= tag that wont validate. I am using Lightbox on the first 2 images on my webpage http://www.colletts.co.uk/colletts_n..._holidays.html where the caption on the lightbox image is linked to the relevant page with a rev link. This however doesn't verify 'Line 100, Column 120: character "/" is not allowed in the value of attribute "rev".' Does anyone know a way around this or should I just drop the link? Whadyareckon HTML Code: <a href="lightbox/via_ferrata_dolomites_tofana.jpg" rel="lightbox" title="Via Ferrata in the Dolomites" rev="http://www.colletts.co.uk/via_ferrata_and_klettersteig.html"> <img src="http://www.colletts.co.uk/images/via_ferrata_dolomites_italy.jpg" alt="Via Ferrata in the Dolomites" width="238" height="314" class="rpadding" longdesc="http://www.colletts.co.uk/images/via_ferrata_dolomites_italy.jpg"/> |