软讯网络 > 网站建设 > 网页制作 > XHTML: Differences between Strict
【标 题】:XHTML: Differences between Strict
【关键字】:
XHTML,Differences,between,Strict
【来 源】:http://www.cublog.cn/u/23783/showart.php?id=235085
XHTML: Differences between Strict
[Web] XHTML: Differences between Strict & Transitional
XHTML: Differences between Strict & Transitional
Colour coding
- An XHTML1.0 element
- An XHTML1.0 loose element (removed in Strict)
- An XHTML1.0 attribute
- A warning or notice
Elements removed in XHTML Strict
- dir
- menu
- center
- isindex
- applet
- font
- basefont
- s
- strike
- u
- iframe
- noframes
Elements changed in XHTML Strict
- head
- Element isindex removed in Strict
- base
- Attribute href changed from implied to required in Strict
- Attribute target removed in Strict
- link
- Attribute target removed in Strict
- script
- Attribute language removed in Strict
- noscript
- Elements center, noframes, isindex, menu, dir, a, br, span, bdo, object, applet, img, map, iframe, sub, sup, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, big, small, font, basefont, tt, i, b, u, s, strike, input, select, textarea, label, button not allowed in Strict
- body
- Attributes bgcolor, text, link, vlink, alink removed in Strict
- Elements center, noframes, isindex, menu, dir, a, br, span, bdo, object, applet, img, map, iframe, sub, sup, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, big, small, font, basefont, tt, i, b, u, s, strike, input, select, textarea, label, button not allowed in Strict
- div
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute align removed in Strict
- p
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute align removed in Strict
- h#
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute align removed in Strict
- ul
- Attributes type, compact removed in Strict
- ol
- Attributes type, compact, start removed in Strict
- li
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attributes type, value removed in Strict
- dl
- Attribute compact removed in Strict
- dt
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- dd
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- address
- Element p removed in Strict
- hr
- Attributes align, noshade, size, width removed in Strict
- pre
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Elements sup, sub added in Strict.
Error in the DTD? According to a comment in the DTD, pre does not allow sub and sup. However, according to the syntax rules for it, it does allow them. It did NOT allow them in Transitional.
- Attribute width removed in Strict
- blockquote
- Elements center, noframes, isindex, menu, dir, a, br, span, bdo, object, applet, img, map, iframe, sub, sup, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, big, small, font, basefont, tt, i, b, u, s, strike, input, select, textarea, label, button not allowed in Strict
- ins
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- del
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- a
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute target removed in Strict
-
Although the syntax rules prevents the DTD to tell the validator so, a elements may not nest.
- span
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- bdo
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- br
- Attribute clear removed in Strict
- em
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- strong
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- dfn
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- code
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- samp
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- kbd
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- var
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- cite
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- abbr
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- acronym
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- q
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- sub
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- sup
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- tt
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- i
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- b
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- big
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- small
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- object
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attributes align, border, hspace, vspace removed in Strict
- param
- Attribute name changed from required to implied in Strict.
- img
- Attributes name, align, border, hspace, vspace removed in Strict
- map
- Elements center, noframes, isindex, menu, dir not allowed in Strict
- Attribute name removed in Strict
- area
- Attribute target removed in Strict
- form
- Elements a, br, span, bdo, object, applet, img, map, iframe, sub, sup, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, big, small, font, basefont, tt, i, b, u, s, strike, input, select, textarea, label, button not allowed in Strict
- Attributes name, target removed in Strict
-
Although the syntax rules prevents the DTD to tell the validator so, form elements may not nest.
- label
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- input
- Attribute align removed in Strict
-
Although the syntax rules prevents the DTD to tell the validator so, the name attribute is required for all input elements except those of the type submit or reset.
- fieldset
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
-
Although the syntax rules prevents the DTD to tell the validator so, only one legend element should be placed within the fieldset and that element should only be preceeded by whitespace.
- legend
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- button
- Elements center, noframes, isindex, menu, dir, iframe, font, basefont, u, s, strike not allowed in Strict
-
Although the syntax rules prevents the DTD to tell the validator so, the button element may not contain a, form, input, button, textarea, select
- table
- Attributes bgcolor, align removed in Strict
- caption
- Elements applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute align removed in Strict
- tr
- Attribute bgcolor removed in Strict
- th
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute nowrap, bgcolor, width ,height removed in Strict
- td
- Elements center, noframes, isindex, menu, dir, applet, iframe, big, small, font, basefont, u, s, strike not allowed in Strict
- Attribute nowrap, bgcolor, width ,height removed in Strict