<!doctype html>
<html lang=en dir=ltr>
<title>MicrosyntaxDescriptions - WHATWG Wiki</title>
<meta charset=UTF-8>
<meta name=generator content="MediaWiki 1.17alpha">
<link rel="shortcut icon" href="/favicon.ico">
<link rel=search type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="WHATWG Wiki (en)">
<link rel=copyright href="/wiki/WHATWG_Wiki:Copyrights">
<link rel=alternate type="application/atom+xml" title="WHATWG Wiki Atom feed" href="/index.php?title=Special:RecentChanges&amp;feed=atom">
<link rel=stylesheet href="/skins/common/shared.css?270" media=screen>
<link rel=stylesheet href="/skins/common/commonPrint.css?270" media=print>
<link rel=stylesheet href="/skins/monobook/main.css?270" media=screen>
<!--[if lt IE 5.5000]><link rel=stylesheet href="/skins/monobook/IE50Fixes.css?270" media=screen><![endif]-->
<!--[if IE 5.5000]><link rel=stylesheet href="/skins/monobook/IE55Fixes.css?270" media=screen><![endif]-->
<!--[if IE 6]><link rel=stylesheet href="/skins/monobook/IE60Fixes.css?270" media=screen><![endif]-->
<!--[if IE 7]><link rel=stylesheet href="/skins/monobook/IE70Fixes.css?270" media=screen><![endif]-->
<link rel=stylesheet href="/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000">
<link rel=stylesheet href="/index.php?title=MediaWiki:Print.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" media=print>
<link rel=stylesheet href="/index.php?title=MediaWiki:Monobook.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000">
<link rel=stylesheet href="/index.php?title=-&amp;action=raw&amp;maxage=18000&amp;gen=css">
<script>
var skin="monobook",
stylepath="/skins",
wgUrlProtocols="http\\:\\/\\/|https\\:\\/\\/|ftp\\:\\/\\/|irc\\:\\/\\/|gopher\\:\\/\\/|telnet\\:\\/\\/|nntp\\:\\/\\/|worldwind\\:\\/\\/|mailto\\:|news\\:|svn\\:\\/\\/|git\\:\\/\\/|mms\\:\\/\\/",
wgArticlePath="/wiki/$1",
wgScriptPath="",
wgScriptExtension=".php",
wgScript="/index.php",
wgVariantArticlePath=false,
wgActionPaths={},
wgServer="http://wiki.whatwg.org",
wgCanonicalNamespace="",
wgCanonicalSpecialPageName=false,
wgNamespaceNumber=0,
wgPageName="MicrosyntaxDescriptions",
wgTitle="MicrosyntaxDescriptions",
wgAction="view",
wgArticleId=1743,
wgIsArticle=true,
wgUserName=null,
wgUserGroups=["*"],
wgUserLanguage="en",
wgContentLanguage="en",
wgBreakFrames=false,
wgCurRevisionId=4919,
wgVersion="1.17alpha",
wgEnableAPI=true,
wgEnableWriteAPI=true,
wgSeparatorTransformTable=["", ""],
wgDigitTransformTable=["", ""],
wgMainPageTitle="Main Page",
wgFormattedNamespaces={"-2": "Media", "-1": "Special", "0": "", "1": "Talk", "2": "User", "3": "User talk", "4": "WHATWG Wiki", "5": "WHATWG Wiki talk", "6": "File", "7": "File talk", "8": "MediaWiki", "9": "MediaWiki talk", "10": "Template", "11": "Template talk", "12": "Help", "13": "Help talk", "14": "Category", "15": "Category talk"},
wgNamespaceIds={"media": -2, "special": -1, "": 0, "talk": 1, "user": 2, "user_talk": 3, "whatwg_wiki": 4, "whatwg_wiki_talk": 5, "file": 6, "file_talk": 7, "mediawiki": 8, "mediawiki_talk": 9, "template": 10, "template_talk": 11, "help": 12, "help_talk": 13, "category": 14, "category_talk": 15, "image": 6, "image_talk": 7},
wgSiteName="WHATWG Wiki",
wgCategories=["Validator.nu Documentation"],
wgRestrictionEdit=[],
wgRestrictionMove=[];
</script><script src="/skins/common/wikibits.js?270"></script>
<script src="/skins/common/ajax.js?270"></script>
<script src="/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=monobook&amp;270"></script>

<body class="mediawiki ltr ns-0 ns-subject page-MicrosyntaxDescriptions skin-monobook">
<div id="globalWrapper">
<div id="column-content"><div id="content">
	<a id="top"></a>
	
	<h1 id="firstHeading" class="firstHeading">MicrosyntaxDescriptions</h1>
	<div id="bodyContent">
		<h3 id="siteSub">From WHATWG Wiki</h3>
		<div id="contentSub"></div>
		<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div>
		<!-- start content -->
<p>The purpose of this page is to enable collaborative creation of brief advisory text for each HTML5 microsyntax so that when the content of an attribute value or the text content of an element does not conform to a given microsyntax, a validator can display the advisory text about the syntax to guide the author to fix the content. Note that like the rest of this wiki, editing requires you to agree to release your contributions under the MIT license (see wiki footer). Please note that while copying text from the <a href="http://www.whatwg.org/specs/web-apps/current-work/" class="external text" rel=nofollow>WHATWG version of HTML 5</a> is OK, copying text from RFCs or W3C specs is not OK.
</p><p>Note that some formats pertain to Web Forms 2.0 (e.g. <code>datetime-local</code>).
</p><p>Please keep descriptions short: one paragraph in length.
</p>
<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#browsing-context"><span class="tocnumber">1</span> <span class="toctext">browsing-context</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#browsing-context-or-keyword"><span class="tocnumber">2</span> <span class="toctext">browsing-context-or-keyword</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#cdo-cdc-pair"><span class="tocnumber">3</span> <span class="toctext">cdo-cdc-pair</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#charset"><span class="tocnumber">4</span> <span class="toctext">charset</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#charset-list"><span class="tocnumber">5</span> <span class="toctext">charset-list</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#circle"><span class="tocnumber">6</span> <span class="toctext">circle</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#date"><span class="tocnumber">7</span> <span class="toctext">date</span></a></li>
<li class="toclevel-1 tocsection-8"><a href="#date-or-time"><span class="tocnumber">8</span> <span class="toctext">date-or-time</span></a></li>
<li class="toclevel-1 tocsection-9"><a href="#date-or-time-content"><span class="tocnumber">9</span> <span class="toctext">date-or-time-content</span></a></li>
<li class="toclevel-1 tocsection-10"><a href="#datetime"><span class="tocnumber">10</span> <span class="toctext">datetime</span></a></li>
<li class="toclevel-1 tocsection-11"><a href="#datetime-local"><span class="tocnumber">11</span> <span class="toctext">datetime-local</span></a></li>
<li class="toclevel-1 tocsection-12"><a href="#datetime-tz"><span class="tocnumber">12</span> <span class="toctext">datetime-tz</span></a></li>
<li class="toclevel-1 tocsection-13"><a href="#email"><span class="tocnumber">13</span> <span class="toctext">email</span></a></li>
<li class="toclevel-1 tocsection-14"><a href="#float"><span class="tocnumber">14</span> <span class="toctext">float</span></a></li>
<li class="toclevel-1 tocsection-15"><a href="#float-non-negative"><span class="tocnumber">15</span> <span class="toctext">float-non-negative</span></a></li>
<li class="toclevel-1 tocsection-16"><a href="#float-positive"><span class="tocnumber">16</span> <span class="toctext">float-positive</span></a></li>
<li class="toclevel-1 tocsection-17"><a href="#float-exp"><span class="tocnumber">17</span> <span class="toctext">float-exp</span></a></li>
<li class="toclevel-1 tocsection-18"><a href="#float-exp-positive"><span class="tocnumber">18</span> <span class="toctext">float-exp-positive</span></a></li>
<li class="toclevel-1 tocsection-19"><a href="#hash-name"><span class="tocnumber">19</span> <span class="toctext">hash-name</span></a></li>
<li class="toclevel-1 tocsection-20"><a href="#ID"><span class="tocnumber">20</span> <span class="toctext">ID</span></a></li>
<li class="toclevel-1 tocsection-21"><a href="#integer"><span class="tocnumber">21</span> <span class="toctext">integer</span></a></li>
<li class="toclevel-1 tocsection-22"><a href="#integer-non-negative"><span class="tocnumber">22</span> <span class="toctext">integer-non-negative</span></a></li>
<li class="toclevel-1 tocsection-23"><a href="#integer-positive"><span class="tocnumber">23</span> <span class="toctext">integer-positive</span></a></li>
<li class="toclevel-1 tocsection-24"><a href="#iri"><span class="tocnumber">24</span> <span class="toctext">iri</span></a></li>
<li class="toclevel-1 tocsection-25"><a href="#iri-ref"><span class="tocnumber">25</span> <span class="toctext">iri-ref</span></a></li>
<li class="toclevel-1 tocsection-26"><a href="#language"><span class="tocnumber">26</span> <span class="toctext">language</span></a></li>
<li class="toclevel-1 tocsection-27"><a href="#media-query"><span class="tocnumber">27</span> <span class="toctext">media-query</span></a></li>
<li class="toclevel-1 tocsection-28"><a href="#meta-charset"><span class="tocnumber">28</span> <span class="toctext">meta-charset</span></a></li>
<li class="toclevel-1 tocsection-29"><a href="#mime-type"><span class="tocnumber">29</span> <span class="toctext">mime-type</span></a></li>
<li class="toclevel-1 tocsection-30"><a href="#mime-type-list"><span class="tocnumber">30</span> <span class="toctext">mime-type-list</span></a></li>
<li class="toclevel-1 tocsection-31"><a href="#month"><span class="tocnumber">31</span> <span class="toctext">month</span></a></li>
<li class="toclevel-1 tocsection-32"><a href="#pattern"><span class="tocnumber">32</span> <span class="toctext">pattern</span></a></li>
<li class="toclevel-1 tocsection-33"><a href="#polyline"><span class="tocnumber">33</span> <span class="toctext">polyline</span></a></li>
<li class="toclevel-1 tocsection-34"><a href="#ratio"><span class="tocnumber">34</span> <span class="toctext">ratio</span></a></li>
<li class="toclevel-1 tocsection-35"><a href="#rectangle"><span class="tocnumber">35</span> <span class="toctext">rectangle</span></a></li>
<li class="toclevel-1 tocsection-36"><a href="#script-documentation"><span class="tocnumber">36</span> <span class="toctext">script-documentation</span></a></li>
<li class="toclevel-1 tocsection-37"><a href="#time"><span class="tocnumber">37</span> <span class="toctext">time</span></a></li>
<li class="toclevel-1 tocsection-38"><a href="#week"><span class="tocnumber">38</span> <span class="toctext">week</span></a></li>
</ul>
</td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<h2> <span class="mw-headline" id="browsing-context">browsing-context</span></h2>
<p>A browsing context name is any string that does not start with an underscore (<code>_</code>).
</p>
<h2> <span class="mw-headline" id="browsing-context-or-keyword">browsing-context-or-keyword</span></h2>
<p>A browsing context name or keyword is either any string that does not start with an underscore (<code>_</code>) or a string that case-insensitively matches one of: <code>_blank</code>, <code>_self</code>, <code>_parent</code>, or <code>_top</code>.
</p>
<h2> <span class="mw-headline" id="cdo-cdc-pair">cdo-cdc-pair</span></h2>
<p>Any text content that contains the character sequence "<code>&lt;!--</code>" followed by a later occurrence of the character sequence "<code>--&gt;</code>".
</p>
<h2> <span class="mw-headline" id="charset">charset</span></h2>
<p>An encoding name labeled as a "preferred MIME name" in the <a href="http://www.iana.org/assignments/character-sets" class="external text" rel=nofollow>IANA Character Sets registry</a>. Example: <code>utf-8</code>
</p>
<h2> <span class="mw-headline" id="charset-list">charset-list</span></h2>
<p>(form accept-charset value)
</p>
<h2> <span class="mw-headline" id="circle">circle</span></h2>
<p>A circle is specified as three comma-separated (no spaces allowed) integers the last one of which is non-negative. An integer consists of one or more digits (<code>0</code>–<code>9</code>), optionally preceded by a hyphen (<code>-</code>). Examples of circles: <code>5,5,10</code> and <code>-5,0,20</code>
</p>
<h2> <span class="mw-headline" id="date">date</span></h2>
<p>An ISO 8601 date, for example in the format <code><i>YYYY</i>-<i>MM</i>-<i>DD</i></code>. Example: <code>2002-09-29</code>.
</p>
<h2> <span class="mw-headline" id="date-or-time">date-or-time</span></h2>
<p>(<i><a href="http://canvex.lazyilluminati.com/misc/cgi/issues.cgi/folder/microsyntaxes-dates" class="external text" rel=nofollow>This format deviates from the spec draft.</a></i>) An ISO 8601 date (i.e. <code><i>YYYY</i>-<i>MM</i>-<i>DD</i></code>.), time (i.e. <code><i>hh</i>:<i>mm</i></code> optionally followed by <code>:<i>ss</i></code> optionally followed by <code>.</code> and digits) optionally with a time zone designator (i.e. either <code>Z</code>, <code>+<i>hh</i>:<i>mm</i></code> or <code>-<i>hh</i>:<i>mm</i></code>) or both date and time separated by <code>T</code>. Examples: <code>1996-01-01T12:05:25</code>, <code>1996-01-01</code>, <code>12:05:25</code>, <code>1996-01-01T12:05:25.6-02:00</code>
</p>
<h2> <span class="mw-headline" id="date-or-time-content">date-or-time-content</span></h2>
<p>(<i><a href="http://canvex.lazyilluminati.com/misc/cgi/issues.cgi/folder/microsyntaxes-dates" class="external text" rel=nofollow>This format deviates from the spec draft.</a></i>) An ISO 8601 date (i.e. <code><i>YYYY</i>-<i>MM</i>-<i>DD</i></code>.), time (i.e. <code><i>hh</i>:<i>mm</i></code> optionally followed by <code>:<i>ss</i></code> optionally followed by <code>.</code> and digits) optionally with a time zone designator (i.e. either <code>Z</code>, <code>+<i>hh</i>:<i>mm</i></code> or <code>-<i>hh</i>:<i>mm</i></code>) or both date and time separated by <code>T</code> or a Unicode space class character. Unicode space class (Zs) characters are allowed around the components (date, time, time zone designator). Examples: <code>1996-01-01 12:05:25</code>, <code>1996-01-01</code>, <code>12:05:25</code>, <code>1996-01-01 T 12:05:25.6  -02:00</code>
</p>
<h2> <span class="mw-headline" id="datetime">datetime</span></h2>
<p>An ISO 8601 date and time in the UTC time zone, i.e. <code><i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>hh</i>:<i>mm</i></code> optionally followed by <code>:<i>ss</i></code> for the seconds, optionally followed by <code>.</code> and one or more digits for the fraction of a second, and finally followed by <code>Z</code>. Examples: <code>1996-01-01T12:05Z</code>, <code>1996-01-01T12:05:25.6Z</code>.
</p>
<h2> <span class="mw-headline" id="datetime-local">datetime-local</span></h2>
<p>An ISO 8601 date and time with no time zone information, i.e. <code><i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>hh</i>:<i>mm</i></code> optionally followed by <code>:<i>ss</i></code> for the seconds, optionally followed by <code>.</code> and one or more digits for the fraction of a second. Examples: <code>1996-01-01T12:05</code>, <code>1996-01-01T12:05:25.6</code>.
</p>
<h2> <span class="mw-headline" id="datetime-tz">datetime-tz</span></h2>
<p>(<i><a href="http://canvex.lazyilluminati.com/misc/cgi/issues.cgi/folder/microsyntaxes-dates" class="external text" rel=nofollow>This format deviates from the spec draft.</a></i>) An ISO 8601 date and time with a time zone designator, i.e. <code><i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>hh</i>:<i>mm</i>:<i>ss</i></code> optionally followed by <code>.</code> and one or more digits for the fraction of a second, and finally followed by either <code>Z</code>, <code>+<i>hh</i>:<i>mm</i></code> or <code>-<i>hh</i>:<i>mm</i></code>. Examples: <code>1996-01-01T12:05:25Z</code>, <code>1996-01-01T12:05:25.6+02:00</code>.
</p>
<h2> <span class="mw-headline" id="email">email</span></h2>
<p>An e-mail address must match the <code>addr-spec</code> production defined in <a href="http://tools.ietf.org/html/rfc2822#section-3.4.1" class="external text" rel=nofollow>RFC 2822 section 3.4.1</a> excluding the <code>CFWS</code> production everywhere and excluding the <code>FWS</code> production everywhere except in the <code>quoted-string</code> production.
</p>
<h2> <span class="mw-headline" id="float">float</span></h2>
<p>A floating point number consists of one of more digits (<code>0</code>–<code>9</code>), optionally with a single point (<code>.</code>) somewhere (either before these numbers, in between two numbers, or after the numbers), all optionally prefixed with a hyphen (<code>-</code>). Examples: <code>42</code>, <code>.42</code>, <code>-4.2</code>
</p>
<h2> <span class="mw-headline" id="float-non-negative">float-non-negative</span></h2>
<p>...
</p>
<h2> <span class="mw-headline" id="float-positive">float-positive</span></h2>
<p>...
</p>
<h2> <span class="mw-headline" id="float-exp">float-exp</span></h2>
<p>(WF2 float)
</p>
<h2> <span class="mw-headline" id="float-exp-positive">float-exp-positive</span></h2>
<p>(positive WF2 float)
</p>
<h2> <span class="mw-headline" id="hash-name">hash-name</span></h2>
<p>A "<code>#</code>" (number sign) character followed by any string.
</p>
<h2> <span class="mw-headline" id="ID">ID</span></h2>
<p>An ID consists of at least one character but must not contain any whitespace.
</p>
<h2> <span class="mw-headline" id="integer">integer</span></h2>
<p>One or more digits (<code>0</code>–<code>9</code>), optionally preceded by a hyphen (<code>-</code>). For example: <code>42</code> and <code>-273</code> are valid, but <code>+42</code> is not.
</p>
<h2> <span class="mw-headline" id="integer-non-negative">integer-non-negative</span></h2>
<p>One or more digits (<code>0</code>–<code>9</code>). For example: <code>42</code> and <code>0</code> are valid, but <code>-273</code> is not.
</p>
<h2> <span class="mw-headline" id="integer-positive">integer-positive</span></h2>
<p>One or more digits (<code>0</code>–<code>9</code>), with at least one which is non-zero. For example: <code>42</code> is valid, but <code>00</code> is not.
</p>
<h2> <span class="mw-headline" id="iri">iri</span></h2>
<p>An absolute URL. For example: <code>http://example.org/hello</code>, but not <code>/hello</code>. Spaces should be escaped as <code>%20</code>.
</p>
<h2> <span class="mw-headline" id="iri-ref">iri-ref</span></h2>
<p>Any URL. For example: <code>/hello</code>, <code>#canvas</code>, or <code>http://example.org/</code>. Characters should be represented in <a href="http://www.macchiato.com/unicode/nfc-faq" class="external text" rel=nofollow>NFC</a> and spaces should be escaped as <code>%20</code>.
</p>
<h2> <span class="mw-headline" id="language">language</span></h2>
<p>An <a href="http://tools.ietf.org/html/rfc4646" class="external text" rel=nofollow>RFC 4646</a> language tag consists of hyphen-separated ASCII-alphanumeric subtags. There is a primary tag identifying a natural language by its shortest ISO 639 language code (e.g. <code>en</code> for English) and zero or more additional subtags adding precision. The most common additional subtag type is a region subtag which most commonly is a two-letter ISO 3166 country code (e.g. <code>GB</code> for the United Kingdom). IANA maintains a <a href="http://www.iana.org/assignments/language-subtag-registry" class="external text" rel=nofollow>registry of permissible subtags</a>.
</p>
<h2> <span class="mw-headline" id="media-query">media-query</span></h2>
<p>One or more media queries, combined in a comma-separated list. Each media query consists of a <b>media type</b> and zero or more expressions that check for the conditions of particular <b>media features</b>. A media type is one of the following: <b>all</b>, <b>braille</b>, <b>embossed</b>, <b>handheld</b>, <b>print</b>, <b>projection</b>, <b>screen</b>, <b>speech</b>, <b>tty</b>, or <b>tv</b>. <i>Note: The <b>aural</b> media type is deprecated</i>. For information about valid media features and about the exact syntax of media queries, see the <a href="http://dev.w3.org/csswg/css3-mediaqueries/" class="external text" rel=nofollow>Media Queries</a> specification.
</p>
<h2> <span class="mw-headline" id="meta-charset">meta-charset</span></h2>
<p>The string <code>text/html;</code>, optionally followed by whitespace, followed by <code>charset=</code>, followed by an encoding name labeled as a "preferred MIME name" in the <a href="http://www.iana.org/assignments/character-sets" class="external text" rel=nofollow>IANA Character Sets registry</a>. Example: <code>text/html; charset=utf-8</code>
</p>
<h2> <span class="mw-headline" id="mime-type">mime-type</span></h2>
<p>A <a href="http://tools.ietf.org/html/rfc2616#section-3.7" class="external text" rel=nofollow>media-type as defined in RFC 2616</a>; that is, typically, a required <i>type</i>, followed by a "<code>/</code>" character, followed by a required <i>subtype</i>, optionally followed by one or more instances of a "<code>;</code>" character followed by a <i>parameter</i>. Examples: <code>text/css</code>, <code>text/css;charset=utf-8</code>.
</p>
<h2> <span class="mw-headline" id="mime-type-list">mime-type-list</span></h2>
<p>(WF2)
</p>
<h2> <span class="mw-headline" id="month">month</span></h2>
<p>An ISO 8601 date with year and month, i.e. <code><i>YYYY</i>-<i>MM</i></code>. Example: <code>2007-11</code>.
</p>
<h2> <span class="mw-headline" id="pattern">pattern</span></h2>
<p>(WF2)
</p>
<h2> <span class="mw-headline" id="polyline">polyline</span></h2>
<p>...
</p>
<h2> <span class="mw-headline" id="ratio">ratio</span></h2>
<p>(progress content)
</p>
<h2> <span class="mw-headline" id="rectangle">rectangle</span></h2>
<p>...
</p>
<h2> <span class="mw-headline" id="script-documentation">script-documentation</span></h2>
<p>Zero or more <i>code comments</i>, each of which is either a single-line comment starting with "<code>//</code>" or a multi-line comment starting with "<code>/*</code>" and ending with "<code>*/</code>". For further details, see <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#inline-documentation-for-external-scripts" class="external text" rel=nofollow>Inline documentation for external scripts</a>.
</p>
<h2> <span class="mw-headline" id="time">time</span></h2>
<p>A time (hour, minute, seconds, fractional seconds) is encoded according to ISO 8601 with no time zone: two digits (<code>0</code>–<code>9</code>) for the hour, a colon, two digits for the minute, optionally a colon and two digits for the second, and optionally (if the seconds are present) a period (<code>.</code>) and one or more digits for the fraction of a second. All the numbers must be in base ten and zero-padded if necessary. For instance: <code>23:59:00.00000</code> or <code>00:00:05</code>.
</p>
<h2> <span class="mw-headline" id="week">week</span></h2>
<p>A week consists of a year and a week number encoded according to ISO 8601: four or more digits (<code>0</code>–<code>9</code>) representing the year, a hyphen (<code>-</code>), a literal <code>W</code>, and two digits for the week, zero-padded if necessary. The week number must be a number greater than or equal to <code>01</code>. Week <code>01</code> of a given year is the week containing the 4<sup>th</sup> of January; weeks start on Monday. For instance: <code>2005-W52</code> is the week that ended on Sunday the first of January, 2006.
</p>
<!-- 
NewPP limit report
Preprocessor node count: 169/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key whatwikidb:pcache:idhash:1743-0!1!0!!en!2!edit=0 and timestamp 20100802130357 -->
<div class="printfooter">
Retrieved from "<a href="http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions">http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions</a>"</div>
		<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks"><a href="/wiki/Special:Categories" title=Special:Categories>Category</a>: <span dir='ltr'><a href="/wiki/Category:Validator.nu_Documentation" title="Category:Validator.nu Documentation">Validator.nu Documentation</a></span></div></div>		<!-- end content -->
				<div class="visualClear"></div>
	</div>
</div></div>
<div id="column-one">
	<div id="p-cactions" class="portlet">
		<h5>Views</h5>
		<div class="pBody">
			<ul>
				 <li id="ca-nstab-main" class="selected"><a href="/wiki/MicrosyntaxDescriptions" title="View the content page [c]" accesskey="c">Page</a></li>
				 <li id="ca-talk" class="new"><a href="/index.php?title=Talk:MicrosyntaxDescriptions&amp;action=edit&amp;redlink=1" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
				 <li id="ca-viewsource"><a href="/index.php?title=MicrosyntaxDescriptions&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></li>
				 <li id="ca-history"><a href="/index.php?title=MicrosyntaxDescriptions&amp;action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li>
			</ul>
		</div>
	</div>
	<div class="portlet" id="p-personal">
		<h5>Personal tools</h5>
		<div class="pBody">
			<ul>
				<li id="pt-login"><a href="/index.php?title=Special:UserLogin&amp;returnto=MicrosyntaxDescriptions" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in / create account</a></li>
			</ul>
		</div>
	</div>
	<div class="portlet" id="p-logo">
		<a style="background-image: url(http://whatwg.org/images/logo);" href="/wiki/Main_Page" title="Visit the main page"></a>
	</div>
	<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
	<div class='generated-sidebar portlet' id='p-navigation'>
		<h5>Navigation</h5>
		<div class='pBody'>
			<ul>
				<li id="n-mainpage"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z">Main Page</a></li>
				<li id="n-currentevents"><a href="/wiki/WHATWG_Wiki:Current_events" title="Find background information on current events">Current events</a></li>
				<li id="n-recentchanges"><a href="/wiki/Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
				<li id="n-help"><a href="/wiki/Help:Contents" title="The place to find out">Help</a></li>
			</ul>
		</div>
	</div>
	<div id="p-search" class="portlet">
		<h5><label for="searchInput">Search</label></h5>
		<div id="searchBody" class="pBody">
			<form action="/index.php" id="searchform">
				<input type='hidden' name="title" value="Special:Search"/>
				<input id=searchInput title="Search WHATWG Wiki" accesskey=f type=search name=search>
				<input type='submit' name="go" class="searchButton" id="searchGoButton"	value="Go" title="Go to a page with this exact name if exists" />&nbsp;
				<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
			</form>
		</div>
	</div>
	<div class="portlet" id="p-tb">
		<h5>Toolbox</h5>
		<div class="pBody">
			<ul>
				<li id="t-whatlinkshere"><a href="/wiki/Special:WhatLinksHere/MicrosyntaxDescriptions" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
				<li id="t-recentchangeslinked"><a href="/wiki/Special:RecentChangesLinked/MicrosyntaxDescriptions" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="/wiki/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
				<li id="t-print"><a href="/index.php?title=MicrosyntaxDescriptions&amp;printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li>				<li id="t-permalink"><a href="/index.php?title=MicrosyntaxDescriptions&amp;oldid=4919" title="Permanent link to this revision of the page">Permanent link</a></li>			</ul>
		</div>
	</div>
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer">
	<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="/skins/common/images/poweredby_mediawiki_88x31.png" height="31" width="88" alt="Powered by MediaWiki" /></a></div>
	<ul id="f-list">
		<li id="lastmod"> This page was last modified on 9 June 2010, at 03:29.</li>
		<li id="viewcount">This page has been accessed 43,545 times.</li>
		<li id="copyright">Content is available under <a href="/wiki/WHATWG_Wiki:Copyrights" title="WHATWG Wiki:Copyrights">MIT Licence</a>.</li>
		<li id="privacy"><a href="/wiki/WHATWG_Wiki:Privacy_policy" title="WHATWG Wiki:Privacy policy">Privacy policy</a></li>
		<li id="about"><a href="/wiki/WHATWG_Wiki:About" title="WHATWG Wiki:About">About WHATWG Wiki</a></li>
		<li id="disclaimer"><a href="/wiki/WHATWG_Wiki:General_disclaimer" title="WHATWG Wiki:General disclaimer">Disclaimers</a></li>
	</ul>
</div>
</div>

<script>if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.238 secs. -->