Schema Central  >  XHTML 1.0 Transitional  >  xhtml1-transitional.xsd  >  form
Advanced search

Recommended Reading:

Definitive XML Schema

 

form

Element information

Namespace: http://www.w3.org/1999/xhtml

Schema document: xhtml1-transitional.xsd

Type: Anonymous

Properties: Global, Qualified

Content

  • Any text (mixed) content, intermingled with:
  • from type form.content
  • Choice [0..*]
      from group block
    • p
    • div generic language/style container
    • from group lists
    • ul Unordered list
    • ol Ordered (numbered) list
    • dl
    • menu single column list (DEPRECATED)
    • dir multiple column list (DEPRECATED)
    • from group blocktext
    • pre content is "Inline" excluding "img|object|applet|big|small|sub|sup|font|basefont"
    • hr
    • blockquote
    • address information on author
    • center center content
    • noframes alternate content container for non frame-based rendering
    • isindex single-line text input control (DEPRECATED)
    • fieldset The fieldset element is used to group form fields. Only one legend element should occur in the content and if present should only be preceded by whitespace. NOTE: this content model is different from the XHTML 1.0 DTD, closer to the intended content model in HTML4 DTD
    • table
    • from group inline
    • a content is "Inline" except that anchors shouldn't be nested
    • from group special.basic
    • br forced line break
    • span generic language/style container
    • bdo I18N BiDi over-ride
    • from group special.extra
    • object
    • applet
    • img
    • map
    • iframe inline subwindow
    • from group fontstyle.basic
    • tt fixed pitch font
    • i italic font
    • b bold font
    • u underline
    • s strike-through
    • strike strike-through
    • from group fontstyle.extra
    • big bigger font
    • small smaller font
    • font local change to font
    • basefont base font size
    • from group phrase.basic
    • em emphasis
    • strong strong emphasis
    • dfn definitional
    • code program code
    • q inlined quote
    • samp sample
    • kbd something user would type
    • var variable
    • cite citation
    • abbr abbreviation
    • acronym acronym
    • from group phrase.extra
    • sub subscript
    • sup superscript
    • from group inline.forms
    • input form control
    • select option selector
    • textarea multi-line text field
    • label Each label must not contain more than ONE field Label elements shouldn't be nested.
    • button Content is "Flow" excluding a, form and form controls
    • from group misc
    • noscript alternate content container for non script-based rendering
    • from group misc.inline
    • ins
    • del
    • script script statements, which may include CDATA sections

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom group coreattrs
class [0..1]xsd:NMTOKENSfrom group coreattrs
style [0..1]StyleSheetfrom group coreattrs
title [0..1]Textfrom group coreattrs
lang [0..1]LanguageCodefrom group i18n
xml:lang [0..1]Anonymousdenotes an attribute whose value is a language code for the natural language of the content of any element; its value is inherited. from group i18n
dir [0..1]Anonymousfrom group i18n
onclick [0..1]Scriptfrom group events
ondblclick [0..1]Scriptfrom group events
onmousedown [0..1]Scriptfrom group events
onmouseup [0..1]Scriptfrom group events
onmouseover [0..1]Scriptfrom group events
onmousemove [0..1]Scriptfrom group events
onmouseout [0..1]Scriptfrom group events
onkeypress [0..1]Scriptfrom group events
onkeydown [0..1]Scriptfrom group events
onkeyup [0..1]Scriptfrom group events
action [1..1]URI
method [0..1]AnonymousDefault value is "get".
enctype [0..1]ContentTypeDefault value is "application/x-www-form-urlencoded".
onsubmit [0..1]Script
onreset [0..1]Script
accept [0..1]ContentTypes
accept-charset [0..1]Charsets
target [0..1]FrameTarget

Used in

  • Anonymous type of element object
  • Anonymous type of element applet
  • Anonymous type of element map
  • Anonymous type of element fieldset
  • Anonymous type of element noscript  via extension of Flow
  • Anonymous type of element iframe  via extension of Flow
  • Anonymous type of element noframes  via extension of Flow
  • Anonymous type of element body  via extension of Flow
  • Anonymous type of element div  via extension of Flow
  • Anonymous type of element li  via extension of Flow
  • Anonymous type of element dd  via extension of Flow
  • Anonymous type of element blockquote  via extension of Flow
  • Anonymous type of element center  via extension of Flow
  • Anonymous type of element ins  via extension of Flow
  • Anonymous type of element del  via extension of Flow
  • Anonymous type of element th  via extension of Flow
  • Anonymous type of element td  via extension of Flow
  • Type Flow

Sample instance

<form> <--any elements or text--> </form>