User kevin - SnippetGood most recent 30 from http://snippetgood.com 2010-07-29T23:58:39Z http://snippetgood.com/feeds/user/49 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://snippetgood.com/questions/129/how-can-i-display-formatted-rss-data-in-a-div/148#148 Answer by Kevin for How can I display formatted rss data in a DIV Kevin 2009-11-11T13:25:24Z 2009-11-11T13:25:24Z <p>You might want to try <a href="http://pipes.yahoo.com/" rel="nofollow">Yahoo! Pipes</a>. Visually construct and manipulate data and then select on of the many options they provide for embedding it on your site.</p> http://snippetgood.com/questions/89/if-statements-and-ranges/147#147 Answer by Kevin for If statements and ranges Kevin 2009-11-11T04:45:33Z 2009-11-11T04:45:33Z <p>I usually use something like this:</p> <p>(Javascript) </p> <pre><code>function clamp(value, min, max) { return Math.max( Math.min( value, max ), min ); } </code></pre> http://snippetgood.com/questions/120/b-or-strong/146#146 Answer by Kevin for <b> or <strong>? Kevin 2009-11-11T04:39:16Z 2009-11-11T04:39:16Z <p>The difference is &lt;strong&gt; and &lt;em&gt; convey meaning, whereas &lt;b&gt; and &lt;i&gt; describe how to render text. Although they look the same, they are semantically different.</p> http://snippetgood.com/questions/143/using-font-tags-in-html-and-css/145#145 Answer by Kevin for Using font tags in html and css. Kevin 2009-11-11T04:29:03Z 2009-11-11T04:29:03Z <p>Font tags are frowned upon by many people mainly because it does not describe what your content <em>is</em> -- it describes what it <em>looks like</em>. This limits what style changes can be applied globally.</p> <p>If you have a website with multiple themes or plan on updating your design in the future, it is much easier to change a few lines in a css file than it is to manually go through all the content on your website and alter the font tags and other markup.</p> <p>I have seen this dozens of times and have gone through the pains of managing websites that used tons of tables and font tags for styling.</p> <p><strong>This is much harder to maintain:</strong></p> <pre><code>&lt;p&gt; &lt;font face="Arial"&gt;&lt;big&gt;Article Headline&lt;/big&gt;&lt;/font&gt;&lt;br /&gt; &lt;small&gt;Posted by: &lt;font face="Times" color="gray"&gt;Author&lt;/font&gt;&lt;/small&gt;&lt;br /&gt; &lt;blockquote&gt;Excerpt here.&lt;/blockquote&gt; &lt;/p&gt; </code></pre> <p><strong>Compared to:</strong></p> <pre><code>&lt;div class="news"&gt; &lt;div class="title"&gt;Article Headline&lt;/div&gt; &lt;div class="detail"&gt;Posted by: &lt;span class="author"&gt;Author&lt;/span&gt;&lt;/div&gt; &lt;div class="excerpt"&gt;Excerpt here.&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Another thing I should mention is most WYSIWYG rich text editors have poor support for css compliant output and instead they will use many &lt;p&gt; and &lt;font&gt; tags. This is a gray area... I would use font tags at your own discretion.</p>