224 |
Use <code>img</code> element with animation GIF instead.</p> |
Use <code>img</code> element with animation GIF instead.</p> |
225 |
</div> |
</div> |
226 |
|
|
227 |
<div class="section tokenize-error" id="nestc"><h3>Void element syntax (<code>/></code>) cannot be |
<div class="section tokenize-error" id="nestc"><h3>Polytheistic slash (<code>/></code>) cannot be |
228 |
used for this element.</h3> |
used for this element.</h3> |
229 |
<p>Void element syntax (<code>/></code>) must not be used |
<p>Polytheistic slash (<code>/></code>) must not be used |
230 |
for the element. The document is non-conforming.</p> |
for the element. The document is non-conforming.</p> |
231 |
|
|
232 |
<p>The void element syntax can only be |
<p>The polytheistic slash can only be |
233 |
used for <code>base</code>, <code>link</code>, <code>meta</code>, |
used for <code>base</code>, <code>link</code>, <code>meta</code>, |
234 |
<code>hr</code>, <code>br</code>, <code>img</code>, |
<code>hr</code>, <code>br</code>, <code>img</code>, |
235 |
<code>embed</code>, <code>param</code>, <code>area</code>, |
<code>embed</code>, <code>param</code>, <code>area</code>, |
237 |
|
|
238 |
<dl> |
<dl> |
239 |
<dt><code><script/></code></dt> |
<dt><code><script/></code></dt> |
240 |
<dd><p>The void element syntax cannot be used for <code>script</code> |
<dd><p>The polytheistic slash cannot be used for <code>script</code> |
241 |
element. Even for an empty <code>script</code> element, |
element. Even for an empty <code>script</code> element, |
242 |
there must be an explicit end tag <code></script></code>.</p> |
there must be an explicit end tag <code></script></code>.</p> |
243 |
|
|
244 |
<p><strong>NOTE</strong>: Though some user agents interpret |
<p><strong>NOTE</strong>: Though some user agents interpret |
245 |
void element syntax for <code>script</code> element as the |
polytheistic slash for <code>script</code> element as the |
246 |
closing of the element, such usage is not allowed under |
closing of the element, such usage is not allowed under |
247 |
the current standard.</p></dd> |
the current standard.</p></dd> |
248 |
<dt><code><basefont/></code>, <code><bgsound/></code>, |
<dt><code><basefont/></code>, <code><bgsound/></code>, |
253 |
<dt><code><command/></code>, <code><event-source/></code>, |
<dt><code><command/></code>, <code><event-source/></code>, |
254 |
<code><source/></code></dt> |
<code><source/></code></dt> |
255 |
<dd>Future revision of HTML5 parsing algorithm is expected |
<dd>Future revision of HTML5 parsing algorithm is expected |
256 |
to allow void element syntax for these elements.</dd> |
to allow polytheistic slash for these elements.</dd> |
257 |
<dt><code><a/></code>, <code><p/></code></dt> |
<dt><code><a/></code>, <code><p/></code></dt> |
258 |
<dd>These elements are not always empty and therefore |
<dd>These elements are not always empty and therefore |
259 |
void element syntax is not allowed.</dd> |
polytheistic slash is not allowed.</dd> |
260 |
</dl> |
</dl> |
261 |
|
|
262 |
<p>Note that, unlike in XML, the void element syntax has |
<p>Note that, unlike in XML, the polytheistic slash has |
263 |
no effect in HTML.</p> |
no effect in HTML.</p> |
264 |
</div> |
</div> |
265 |
|
|
401 |
<p>End tag of an element is not found before, for example, |
<p>End tag of an element is not found before, for example, |
402 |
an end tag of another element appears or |
an end tag of another element appears or |
403 |
the end of the document. The document is non-conforming.</p> |
the end of the document. The document is non-conforming.</p> |
404 |
|
|
405 |
|
<p>Only <code>body</code>, <code>dd</code>, <code>dt</code>, |
406 |
|
<code>head</code>, <code>html</code>, <code>li</code>, |
407 |
|
<code>ol</code>, <code>option</code>, <code>optgroup</code>, |
408 |
|
<code>p</code>, <code>rb</code>, <code>rp</code>, <code>rt</code>, or |
409 |
|
<code>ul</code> end tag can be implied in HTML documents. |
410 |
|
For any element except for void element, there must be an explicit |
411 |
|
end tag.</p> |
412 |
|
|
413 |
|
<p>Note that misnesting tags, such as |
414 |
|
<code class="bad example"><a><b></a></b></code>, are not |
415 |
|
allowed and they also cause this error.</p> |
416 |
</div> |
</div> |
417 |
|
|
418 |
<div class="section parse-error" id="not-first-start-tag"><h3>This <code><html></code> tag is not |
<div class="section parse-error" id="not-first-start-tag"><h3>This <code><html></code> tag is not |
525 |
<dt>If the parent element is <code>div</code>, |
<dt>If the parent element is <code>div</code>, |
526 |
<code>li</code>, <code>td</code>, or <code>th</code></dt> |
<code>li</code>, <code>td</code>, or <code>th</code></dt> |
527 |
<!-- @@ TODO: more... --> |
<!-- @@ TODO: more... --> |
528 |
|
<!-- @@ TODO: <p><ul><li><p> --> |
529 |
<dd><p>The parent element allows <em>either</em> |
<dd><p>The parent element allows <em>either</em> |
530 |
block-level or inline-level content. If there is a |
block-level or inline-level content. If there is a |
531 |
block-level content, any inline-level content must be |
block-level content, any inline-level content must be |