Home > News, Scripting & Coding > NSFW Tag in HTML version 5

NSFW Tag in HTML version 5

June 15th, 2009

One of the most common descriptive notes people have to write using text when they post links or images to blogs, comments or anywhere in HTML is to say “this link is not safe for work” or simply “NSFW”. By adding the <NSFW> tag, this could be made much simpler and standardized. Browsers could then have an option to automatically hide all <NSFW> content. A tag is preferred to an attribute since it could then also be used around content and not just links.

Examples:
<nsfw><a href=”http://www.example.com”>Pics here!</a></nsfw>
<nsfw><img src=”badkitten.jpg”></nsfw>

The use of tags (rather than CSS and JavaScript) to hide or show content is an intriguing and controversial aspect of HTML 5. It’s intriguing because using a standard tag—instead of writing custom CSS and JavaScript that someone else may someday have to maintain—potentially simplifies web development and maintenance, bringing advanced techniques of content presentation to more sites for less money. It’s controversial because it sticks presentation and behavior back in markup, after we all just spent a decade separating site structure and semantics from behavior and presentation.

Taken from: zeldman.com

Related posts:

  1. What is a “blog”?
  2. Joomla releases version 1.5.9
  3. Custom Error Pages
  4. Browser Wars: Apple’s Safari 4
  5. Mozilla releases Firefox version 3.5

News, Scripting & Coding , , , ,

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.