Jump to content

HTML: Difference between revisions

52 bytes removed ,  20 December 2024
m
Text replacement - "**" to ""
m (1 revision imported)
m (Text replacement - "**" to "")
 
Line 440: Line 440:
The Transitional version allows the following parts of the vocabulary, which are not included in the Strict version:
The Transitional version allows the following parts of the vocabulary, which are not included in the Strict version:
* '''A looser content model'''
* '''A looser content model'''
** Inline elements and plain text are allowed directly in: <code>body</code>, <code>blockquote</code>, <code>form</code>, <code>noscript</code> and <code>noframes</code>
Inline elements and plain text are allowed directly in: <code>body</code>, <code>blockquote</code>, <code>form</code>, <code>noscript</code> and <code>noframes</code>
* '''Presentation related elements'''
* '''Presentation related elements'''
** underline (<code>u</code>)(Deprecated. can confuse a visitor with a hyperlink.)
underline (<code>u</code>)(Deprecated. can confuse a visitor with a hyperlink.)
** strike-through (<code>s</code>)
strike-through (<code>s</code>)
** <code>center</code> (Deprecated. use CSS instead.)
<code>center</code> (Deprecated. use CSS instead.)
** <code>font</code> (Deprecated. use CSS instead.)
<code>font</code> (Deprecated. use CSS instead.)
** <code>basefont</code> (Deprecated. use CSS instead.)
<code>basefont</code> (Deprecated. use CSS instead.)
* '''Presentation related attributes'''
* '''Presentation related attributes'''
** <code>background</code> (Deprecated. use CSS instead.) and <code>bgcolor</code> (Deprecated. use CSS instead.) attributes for <code>body</code> (required element according to the W3C.) element.
<code>background</code> (Deprecated. use CSS instead.) and <code>bgcolor</code> (Deprecated. use CSS instead.) attributes for <code>body</code> (required element according to the W3C.) element.
** <code>align</code> (Deprecated. use CSS instead.) attribute on <code>div</code>, <code>form</code>, paragraph (<code>p</code>) and heading (<code>h1</code>...<code>h6</code>) elements
<code>align</code> (Deprecated. use CSS instead.) attribute on <code>div</code>, <code>form</code>, paragraph (<code>p</code>) and heading (<code>h1</code>...<code>h6</code>) elements
** <code>align</code> (Deprecated. use CSS instead.), <code>noshade</code> (Deprecated. use CSS instead.), <code>size</code> (Deprecated. use CSS instead.) and <code>width</code> (Deprecated. use CSS instead.) attributes on <code>hr</code> element
<code>align</code> (Deprecated. use CSS instead.), <code>noshade</code> (Deprecated. use CSS instead.), <code>size</code> (Deprecated. use CSS instead.) and <code>width</code> (Deprecated. use CSS instead.) attributes on <code>hr</code> element
** <code>align</code> (Deprecated. use CSS instead.), <code>border</code>, <code>vspace</code> and <code>hspace</code> attributes on <code>img</code> and <code>object</code> (caution: the <code>object</code> element is only supported in Internet Explorer (from the major browsers)) elements
<code>align</code> (Deprecated. use CSS instead.), <code>border</code>, <code>vspace</code> and <code>hspace</code> attributes on <code>img</code> and <code>object</code> (caution: the <code>object</code> element is only supported in Internet Explorer (from the major browsers)) elements
** <code>align</code> (Deprecated. use CSS instead.) attribute on <code>legend</code> and <code>caption</code> elements
<code>align</code> (Deprecated. use CSS instead.) attribute on <code>legend</code> and <code>caption</code> elements
** <code>align</code> (Deprecated. use CSS instead.) and <code>bgcolor</code> (Deprecated. use CSS instead.) on <code>table</code> element
<code>align</code> (Deprecated. use CSS instead.) and <code>bgcolor</code> (Deprecated. use CSS instead.) on <code>table</code> element
** <code>nowrap</code> (Obsolete), <code>bgcolor</code> (Deprecated. use CSS instead.), <code>width</code>, <code>height</code> on <code>td</code> and <code>th</code> elements
<code>nowrap</code> (Obsolete), <code>bgcolor</code> (Deprecated. use CSS instead.), <code>width</code>, <code>height</code> on <code>td</code> and <code>th</code> elements
** <code>bgcolor</code> (Deprecated. use CSS instead.) attribute on <code>tr</code> element
<code>bgcolor</code> (Deprecated. use CSS instead.) attribute on <code>tr</code> element
** <code>clear</code> (Obsolete) attribute on <code>br</code> element
<code>clear</code> (Obsolete) attribute on <code>br</code> element
** <code>compact</code> attribute on <code>dl</code>, <code>dir</code> and <code>menu</code> elements
<code>compact</code> attribute on <code>dl</code>, <code>dir</code> and <code>menu</code> elements
** <code>type</code> (Deprecated. use CSS instead.), <code>compact</code> (Deprecated. use CSS instead.) and <code>start</code> (Deprecated. use CSS instead.) attributes on <code>ol</code> and <code>ul</code> elements
<code>type</code> (Deprecated. use CSS instead.), <code>compact</code> (Deprecated. use CSS instead.) and <code>start</code> (Deprecated. use CSS instead.) attributes on <code>ol</code> and <code>ul</code> elements
** <code>type</code> and <code>value</code> attributes on <code>li</code> element
<code>type</code> and <code>value</code> attributes on <code>li</code> element
** <code>width</code> attribute on <code>pre</code> element
<code>width</code> attribute on <code>pre</code> element
* '''Additional elements in Transitional specification'''
* '''Additional elements in Transitional specification'''
** <code>menu</code> (Deprecated. use CSS instead.) list (no substitute, though the unordered list, is recommended)
<code>menu</code> (Deprecated. use CSS instead.) list (no substitute, though the unordered list, is recommended)
** <code>dir</code> (Deprecated. use CSS instead.) list (no substitute, though the unordered list is recommended)
<code>dir</code> (Deprecated. use CSS instead.) list (no substitute, though the unordered list is recommended)
** <code>isindex</code> (Deprecated.) (element requires server-side support and is typically added to documents server-side, <code>form</code> and <code>input</code> elements can be used as a substitute)
<code>isindex</code> (Deprecated.) (element requires server-side support and is typically added to documents server-side, <code>form</code> and <code>input</code> elements can be used as a substitute)
** <code>applet</code> (Deprecated. use the <code>object</code> element instead.)
<code>applet</code> (Deprecated. use the <code>object</code> element instead.)
* '''The <code>language</code> (Obsolete) attribute on script element''' (redundant with the <code>type</code> attribute).
* '''The <code>language</code> (Obsolete) attribute on script element''' (redundant with the <code>type</code> attribute).
* '''Frame related entities'''
* '''Frame related entities'''
** <code>iframe</code>
<code>iframe</code>
** <code>noframes</code>
<code>noframes</code>
** <code>target</code> (Deprecated in the <code>map</code>, <code>link</code> and <code>form</code> elements.) attribute on <code>a</code>, client-side image-map (<code>map</code>), <code>link</code>, <code>form</code> and <code>base</code> elements
<code>target</code> (Deprecated in the <code>map</code>, <code>link</code> and <code>form</code> elements.) attribute on <code>a</code>, client-side image-map (<code>map</code>), <code>link</code>, <code>form</code> and <code>base</code> elements


The Frameset version includes everything in the Transitional version, as well as the <code>frameset</code> element (used instead of <code>body</code>) and the <code>frame</code> element.
The Frameset version includes everything in the Transitional version, as well as the <code>frameset</code> element (used instead of <code>body</code>) and the <code>frame</code> element.