<?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>HTML5 Doctor &#187; nsfw</title>
	<atom:link href="http://html5doctor.com/tag/nsfw/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5doctor.com</link>
	<description>helping you implement HTML5 today</description>
	<lastBuildDate>Wed, 16 May 2012 11:31:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>The nsfw element</title>
		<link>http://html5doctor.com/the-nsfw-element/</link>
		<comments>http://html5doctor.com/the-nsfw-element/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 07:30:20 +0000</pubDate>
		<dc:creator>Bruce Lawson</dc:creator>
				<category><![CDATA[Elements]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[nsfw]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=1689</guid>
		<description><![CDATA[Among the new semantic elements for section, footer, header and the like, HTML5 also adds an element that can contain any other element and describes it as Not Safe For Work (commonly abbreviated to "nsfw"). ]]></description>
			<content:encoded><![CDATA[<p>Among the new semantic elements for section, footer, header, and the like, <abbr>HTML</abbr>5 also adds an element that can contain any other element and describes it as Not Safe For Work (commonly abbreviated to &#8220;nsfw&#8221;).</p>
<p>Browsers can be configured by parents or workplace sysadmins never to show content marked as <code>&lt;nsfw&gt;</code>, thereby shielding faint-hearted people from obscenity and protecting employers from employees downloading things they shouldn&#8217;t.</p>
<p>It&#8217;s not just a presentational element, although it does carry with it the default <abbr>CSS</abbr>:</p>
<pre><code>nsfw { display: none; }</code></pre>
<p>The user agent is forbidden from downloading any of the resources contained within the element if the browser&#8217;s <code>&lt;nsfw&gt;</code> setting is &#8220;on&#8221;.</p>
<p>It works like this:</p>
<pre><code>&lt;nsfw&gt;
 &lt;figure&gt;
 &lt;video src="chickens.ogv" autoplay&gt;
 &lt;/video&gt;
 &lt;figcaption&gt;Huge cockerel: two chicks, one coop.&lt;/figcaption&gt;
 &lt;/figure&gt;
&lt;/nsfw&gt;</code></pre>
<p>The entire figure is taken out of the document flow with no indication to the user that something is missing (which could tempt teenagers to circumvent the browser setting). Although the video is set to autoplay, it will never even be downloaded, meaning nothing compromising will be in the user&#8217;s cache.</p>
<p>The new element was suggested by Ian Hickson, the editor of the <abbr>HTML</abbr>5 spec and Google employee: &#8220;Google builds a separate index for those who search using <a href="http://www.google.com/support/websearch/bin/answer.py?hl=en&amp;answer=510">Google SafeSearch</a>. Given that 72.3% of the Web is not safe for work but we currently have to analyse that using machines, semantically marked-up porn and foul language will dramatically reduce the time it takes to build our index, enhance its accuracy and, most importantly, protect little children.&#8221;</p>
<p>So far, it is not implemented in any browser, although in its recent <a href="http://ie.microsoft.com/testdrive/"><abbr>IE</abbr>9 announcement</a>, Microsoft confirmed that <abbr>IE</abbr>9 and its Bing search engine will use a Microsoft-only extension <code>&lt;xxx&gt;</code> instead of the standard <code>&lt;nsfw&gt;</code>.</p>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul class="related">
<li><a href="http://html5doctor.com/html5-seo-search-engine-optimisation/" rel="bookmark" class="crp_title">HTML5 and Search Engine Optimisation (SEO)</a></li>
<li><a href="http://html5doctor.com/the-video-element/" rel="bookmark" class="crp_title">The video element</a></li>
<li><a href="http://html5doctor.com/html5-simplequiz-3-how-to-mute-a-video/" rel="bookmark" class="crp_title">HTML5 Simplequiz #3: how to mute a video</a></li>
<li><a href="http://html5doctor.com/go-offline-with-application-cache/" rel="bookmark" class="crp_title">Go offline with application cache</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-10/" rel="bookmark" class="crp_title">Your Questions Answered #10</a></li>
</ul>
</div>
<p><a href="http://html5doctor.com/the-nsfw-element/" rel="bookmark">The nsfw element</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on April 1, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/the-nsfw-element/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

