<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS-TricksCSS-Tricks</title>
	<atom:link href="http://css-tricks.com/html-snippets-feed/" rel="self" type="application/rss+xml" />
	<link>http://css-tricks.com</link>
	<description>Tips, Tricks, and Techniques on using Cascading Style Sheets.</description>
	<lastBuildDate>Tue, 21 May 2013 14:04:53 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>

	<generator>http://wordpress.org/?v=3.5.1</generator>

	
		<item>
			<title>Meta Tag to Prevent Search Engine Bots</title>
			<link>http://css-tricks.com/snippets/html/meta-tag-to-prevent-search-engine-bots/</link>
			<comments>http://css-tricks.com/snippets/html/meta-tag-to-prevent-search-engine-bots/#comments</comments>
			<pubDate>Thu, 02 Aug 2012 02:17:17 +0000</pubDate>
			<dc:creator>Chris Coyier</dc:creator>
				<guid isPermaLink="false">http://css-tricks.com/?page_id=17645</guid>

			<description><![CDATA[<p>To prevent all search bots from indexing a page:</p>
<code>&#60;meta name="robots" content="noindex"&#62;</code>
<p>To prevent just Google:</p>
<code>&#60;meta name="googlebot" content="noindex"&#62;</code>
<p>If you have control over it, you probably want to add nofollow to links that point to that page as well:</p>
<code>&#60;a href="privatepage.html" rel="nofollow"&#62;Link to private page&#60;/a&#62;</code>
<p>Theoretically that's not needed for Google, which claims to drop all pages with noindex from their directory. But there are more search engines out there and it doesn't hurt.&#8230;</p>]]></description>

			<content:encoded><![CDATA[<p>To prevent all search bots from indexing a page:</p>
<pre rel="HTML" class="lang-html"><code>&lt;meta name="robots" content="noindex"&gt;</code></pre>
<p>To prevent just Google:</p>
<pre rel="HTML" class="lang-html"><code>&lt;meta name="googlebot" content="noindex"&gt;</code></pre>
<p>If you have control over it, you probably want to add nofollow to links that point to that page as well:</p>
<pre rel="HTML" class="lang-html"><code>&lt;a href="privatepage.html" rel="nofollow"&gt;Link to private page&lt;/a&gt;</code></pre>
<p>Theoretically that's not needed for Google, which claims to drop all pages with noindex from their directory. But there are more search engines out there and it doesn't hurt.</p>
]]></content:encoded>

			<wfw:commentRss>http://css-tricks.com/snippets/html/meta-tag-to-prevent-search-engine-bots/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>

						
		</item>

	
		<item>
			<title>Video For Everybody (HTML5 Video with Flash Fallback)</title>
			<link>http://css-tricks.com/snippets/html/video-for-everybody-html5-video-with-flash-fallback/</link>
			<comments>http://css-tricks.com/snippets/html/video-for-everybody-html5-video-with-flash-fallback/#comments</comments>
			<pubDate>Mon, 16 Jul 2012 00:04:05 +0000</pubDate>
			<dc:creator>Chris Coyier</dc:creator>
				<guid isPermaLink="false">http://css-tricks.com/?page_id=17533</guid>

			<description><![CDATA[<code>&#60;!-- first try HTML5 playback: if serving as XML, expand `controls` to `controls="controls"` and autoplay likewise --&#62;
&#60;!-- warning: playback does not work on iOS3 if you include the poster attribute! fixed in iOS4.0 --&#62;
&#60;video width="640" height="360" controls&#62;
	&#60;!-- MP4 must be first for iPad! --&#62;
	&#60;source src="__VIDEO__.MP4" type="video/mp4" /&#62;&#60;!-- Safari / iOS video    --&#62;
	&#60;source src="__VIDEO__.OGV" type="video/ogg" /&#62;&#60;!-- Firefox / Opera / Chrome10 --&#62;
	&#60;!-- fallback to Flash: --&#62;
	&#60;object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF"&#62;
		&#60;!-- Firefox uses the &#8230;</code>]]></description>

			<content:encoded><![CDATA[<pre rel="HTML" class="lang-html"><code>&lt;!-- first try HTML5 playback: if serving as XML, expand `controls` to `controls="controls"` and autoplay likewise --&gt;
&lt;!-- warning: playback does not work on iOS3 if you include the poster attribute! fixed in iOS4.0 --&gt;
&lt;video width="640" height="360" controls&gt;
	&lt;!-- MP4 must be first for iPad! --&gt;
	&lt;source src="__VIDEO__.MP4" type="video/mp4" /&gt;&lt;!-- Safari / iOS video    --&gt;
	&lt;source src="__VIDEO__.OGV" type="video/ogg" /&gt;&lt;!-- Firefox / Opera / Chrome10 --&gt;
	&lt;!-- fallback to Flash: --&gt;
	&lt;object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF"&gt;
		&lt;!-- Firefox uses the `data` attribute above, IE/Safari uses the param below --&gt;
		&lt;param name="movie" value="__FLASH__.SWF" /&gt;
		&lt;param name="flashvars" value="controlbar=over&amp;amp;image=__POSTER__.JPG&amp;amp;file=__VIDEO__.MP4" /&gt;
		&lt;!-- fallback image. note the title field below, put the title of the video there --&gt;
		&lt;img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__"
		     title="No video playback capabilities, please download the video below" /&gt;
	&lt;/object&gt;
&lt;/video&gt;
&lt;!-- you *must* offer a download link as they may be able to play the file locally. customise this bit all you want --&gt;
&lt;p&gt;	&lt;strong&gt;Download Video:&lt;/strong&gt;
	Closed Format:	&lt;a href="__VIDEO__.MP4"&gt;"MP4"&lt;/a&gt;
	Open Format:	&lt;a href="__VIDEO__.OGV"&gt;"Ogg"&lt;/a&gt;
&lt;/p&gt;</code></pre>
<p><a href="http://camendesign.com/code/video_for_everybody">A complete explanation</a> at Kroc Camen's site, the originator of this technique.</p>
]]></content:encoded>

			<wfw:commentRss>http://css-tricks.com/snippets/html/video-for-everybody-html5-video-with-flash-fallback/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>

						
		</item>

	
		<item>
			<title>Base64 Encode of 1x1px Transparent GIF</title>
			<link>http://css-tricks.com/snippets/html/base64-encode-of-1x1px-transparent-gif/</link>
			<comments>http://css-tricks.com/snippets/html/base64-encode-of-1x1px-transparent-gif/#comments</comments>
			<pubDate>Mon, 12 Dec 2011 20:02:58 +0000</pubDate>
			<dc:creator>Chris Coyier</dc:creator>
				<guid isPermaLink="false">http://css-tricks.com/?page_id=15547</guid>

			<description><![CDATA[<p>Just in case you need one. You can stretch it out to fill space as needed.</p>
<code>&#60;img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"&#62;</code>
<p>Or a black one:</p>
<code>&#60;img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="&#62;&#8230;</code>]]></description>

			<content:encoded><![CDATA[<p>Just in case you need one. You can stretch it out to fill space as needed.</p>
<pre rel="HTML"><code>&lt;img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"&gt;</code></pre>
<p>Or a black one:</p>
<pre rel="HTML"><code>&lt;img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="&gt;</code></pre>
]]></content:encoded>

			<wfw:commentRss>http://css-tricks.com/snippets/html/base64-encode-of-1x1px-transparent-gif/feed/</wfw:commentRss>
			<slash:comments>27</slash:comments>

						
		</item>

	
		<item>
			<title>Post Data to an iframe</title>
			<link>http://css-tricks.com/snippets/html/post-data-to-an-iframe/</link>
			<comments>http://css-tricks.com/snippets/html/post-data-to-an-iframe/#comments</comments>
			<pubDate>Fri, 02 Dec 2011 03:59:39 +0000</pubDate>
			<dc:creator>Chris Coyier</dc:creator>
				<guid isPermaLink="false">http://css-tricks.com/?page_id=15365</guid>

			<description><![CDATA[<p>Doesn't take any JavaScript or anything. You just have the form's target attribute match the iframe's name attribute.</p>
<code>&#60;form action="iframe.php" target="my-iframe" method="post"&#62;
			
  &#60;label for="text"&#62;Some text:&#60;/label&#62;
  &#60;input type="text" name="text" id="text"&#62;
			
  &#60;input type="submit" value="post"&#62;
			
&#60;/form&#62;
		
&#60;iframe name="my-iframe" src="iframe.php"&#62;&#60;/iframe&#62;</code>
<p>The outer page doesn't even reload. But it might appear to at first glance since many browsers run the page-loading spinner in the tab when an iframe reloads.&#8230;</p>]]></description>

			<content:encoded><![CDATA[<p>Doesn't take any JavaScript or anything. You just have the form's target attribute match the iframe's name attribute.</p>
<pre rel="HTML"><code>&lt;form action="iframe.php" target="my-iframe" method="post"&gt;
			
  &lt;label for="text"&gt;Some text:&lt;/label&gt;
  &lt;input type="text" name="text" id="text"&gt;
			
  &lt;input type="submit" value="post"&gt;
			
&lt;/form&gt;
		
&lt;iframe name="my-iframe" src="iframe.php"&gt;&lt;/iframe&gt;</code></pre>
<p>The outer page doesn't even reload. But it might appear to at first glance since many browsers run the page-loading spinner in the tab when an iframe reloads.</p>
]]></content:encoded>

			<wfw:commentRss>http://css-tricks.com/snippets/html/post-data-to-an-iframe/feed/</wfw:commentRss>
			<slash:comments>34</slash:comments>

						
		</item>

	
		<item>
			<title>Button With Line Breaks</title>
			<link>http://css-tricks.com/snippets/html/button-with-line-breaks/</link>
			<comments>http://css-tricks.com/snippets/html/button-with-line-breaks/#comments</comments>
			<pubDate>Tue, 27 Sep 2011 16:16:08 +0000</pubDate>
			<dc:creator>Chris Coyier</dc:creator>
				<guid isPermaLink="false">http://css-tricks.com/?page_id=14438</guid>

			<description><![CDATA[<p>You can use carriage return characters to break the line: &#38;#x00A;</p>
<code>&#60;input type="button" value="Really&#38;#x00A;Tall&#38;#x00A; Button"&#62;</code>
<p>&#8230;</p>]]></description>

			<content:encoded><![CDATA[<p>You can use carriage return characters to break the line: &amp;#x00A;</p>
<pre rel="HTML"><code>&lt;input type="button" value="Really&amp;#x00A;Tall&amp;#x00A; Button"&gt;</code></pre>
<p><input type="button" value="Really&#x00A;Tall&#x00A; Button"></p>
]]></content:encoded>

			<wfw:commentRss>http://css-tricks.com/snippets/html/button-with-line-breaks/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>

						
		</item>

	
</channel>

</rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Content Delivery Network via cdn.css-tricks.com

 Served from: css-tricks.com @ 2013-05-21 12:22:31 by W3 Total Cache -->