<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.tigerheron.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>tip</title>
 <link>http://www.tigerheron.com/category/tip</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en-US</language>
<item>
 <title>An alternative to the &lt;noscript&gt; tag.</title>
 <link>http://www.tigerheron.com/article/2007/10/alternative-noscript-tag</link>
 <description>&lt;p&gt;
Ideally, when you use &amp;lt;script&gt; to create dynamic Web pages, you will also support browsers where scripting is disabled or unavailable. The &amp;lt;noscript&gt; tag lets you supply the alternate code. But  while &amp;lt;script&gt; can be used inline, &amp;lt;noscript&gt; is strictly a block element, potentially forcing you to duplicate large  amounts of code. I&#039;ll show you an easy alternative to the &amp;lt;noscript&gt; tag for inline uses.&lt;/p&gt;&lt;!--break--&gt;
&lt;p&gt;
If Javascript is your scripting language, insert the following code into the &amp;lt;head&gt; section of your Web page:
&lt;/p&gt;&lt;xmp&gt;  &lt;script type=&quot;text/javascript&quot;&gt;
    document.write(&#039;&lt;style&gt;.noscript { display:none }&lt;/style&gt;&#039;);
  &lt;/script&gt;&lt;/xmp&gt;
&lt;p&gt;
When you need to use &amp;lt;noscript&gt; inline, use &amp;lt;span class=&quot;noscript&quot;&gt; instead.&lt;/p&gt;
&lt;p&gt;
If that went by too fast, consider:
&lt;ul&gt;
&lt;li&gt;If scripting is enabled, the noscript CSS class will be created and will remove any contents tagged with that class.&lt;/li&gt;
&lt;li&gt;If scripting is not enabled, the style is not created and the contents are displayed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You many not have noticed a problem using &amp;lt;noscript&gt; inline, as many browsers support this. But if you&#039;d like your code to validate while retaining the convenience of an inline &amp;lt;noscript&gt; tag, use the trick above.</description>
 <comments>http://www.tigerheron.com/article/2007/10/alternative-noscript-tag#comments</comments>
 <category domain="http://www.tigerheron.com/category/css">CSS</category>
 <category domain="http://www.tigerheron.com/category/graphic-design">graphic design</category>
 <category domain="http://www.tigerheron.com/category/tip">tip</category>
 <category domain="http://www.tigerheron.com/category/web-design">Web design</category>
 <pubDate>Fri, 05 Oct 2007 00:36:22 +0000</pubDate>
 <dc:creator>designer</dc:creator>
 <guid isPermaLink="false">89 at http://www.tigerheron.com</guid>
</item>
</channel>
</rss>
