html:form — An HTML form
annotation
bridgehead
remark
revhistory
informalequation
informalexample
informalfigure
informaltable
(db.cals.informaltable)informaltable
(db.html.informaltable)XHTML defines a html:form
element that can be used to add interactivity to web pages. The HTML Forms Module for DocBook allows html:form
elements to be used in DocBook documents.
A complete description of XHTML is outside the scope of this reference.
Specifies the list of character encodings for input data that is accepted by the server processing this form. The value is a space- and/or comma-delimited list of charset values. The client must interpret this list as an exclusive-or list, i.e., the server is able to accept any single character encoding per entity received.
Specifies a comma-separated list of content types that a server processing this form will handle correctly.
Specifies a form processing agent. User agent behavior for a value other than an HTTP URI is undefined.
This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.
Specifies the content type used to submit the form to the server (when the value of method is “post” ). The default value for this attribute is “application/x-www-form-urlencoded” . The value “multipart/form-data” should be used in combination with the html:input
element, type=“file” .
This attribute specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown.
Specifies which HTTP method will be used to submit the form data set. Possible (case-insensitive) values are “get” (the default) and “post” .
Enumerated values: | |
---|---|
“get” |
Use HTTP GET |
“post” |
Use HTTP POST |
Occurs when the pointing device button is clicked over an element.
Occurs when the pointing device button is double clicked over an element.
Occurs when a key is pressed down over an element.
Occurs when a key is pressed and released over an element.
Occurs when a key is released over an element.
Occurs when the pointing device button is pressed over an element.
Occurs when the pointing device is moved while it is over an element.
Occurs when the pointing device is moved away from an element.
Occurs when the pointing device is moved onto an element.
Occurs when the pointing device button is released over an element.
Ocurs when a form is reset. It only applies to the html:form
element.
Ocurs when a form is submitted. It only applies to the html:form
element.
This attribute specifies style information for the current element.
This attribute offers advisory information about the element for which it is set.
These elements contain html:form
: acknowledgements
, annotation
, answer
, appendix
, article
, bibliodiv
, bibliography
, bibliolist
, blockquote
, callout
, calloutlist
,
caption
(db.caption), caution
, chapter
, colophon
, constraintdef
, cover
, dedication
, entry
, example
, figure
, footnote
, glossary
, glossdef
,
glossdiv
, glosslist
, html:fieldset
, html:form
, important
, index
, indexdiv
, informalexample
, informalfigure
, itemizedlist
, legalnotice
, listitem
, msgexplan
, msgtext
, note
, orderedlist
, partintro
, preface
, procedure
, qandadiv
, qandaset
, question
, refsect1
, refsect2
, refsect3
, refsection
, refsynopsisdiv
, revdescription
, sect1
, sect2
, sect3
, sect4
, sect5
, section
, setindex
, sidebar
, simplesect
, step
, taskprerequisites
, taskrelated
, tasksummary
, td
, textobject
, th
, tip
, toc
, tocdiv
, variablelist
, warning
.
The following elements occur in html:form: address
, anchor
, annotation
, bibliolist
, blockquote
, bridgehead
, calloutlist
, caution
, classsynopsis
, cmdsynopsis
, constraintdef
, constructorsynopsis
, destructorsynopsis
, epigraph
, equation
, example
, fieldsynopsis
, figure
, formalpara
, funcsynopsis
, glosslist
, html:button
, html:fieldset
, html:form
, html:input
, html:label
, html:select
, html:textarea
, important
, indexterm
(db.indexterm.endofrange), indexterm
(db.indexterm.singular), indexterm
(db.indexterm.startofrange), informalequation
, informalexample
, informalfigure
, informaltable
(db.cals.informaltable), informaltable
(db.html.informaltable), itemizedlist
, literallayout
, mediaobject
, methodsynopsis
, msgset
, note
, orderedlist
, para
, procedure
, productionset
, programlisting
, programlistingco
, qandaset
, remark
, revhistory
, screen
, screenco
, screenshot
, segmentedlist
, sidebar
, simpara
, simplelist
, synopsis
, table
(db.cals.table), table
(db.html.table), task
, tip
, variablelist
, warning
.
<article xmlns='http://docbook.org/ns/docbook' xmlns:html="http://www.w3.org/1999/xhtml"> <title>Example html:form</title> <html:form action="http://www.example.org/cgi-bin/dosomething"> <!-- this is a really crude form --> <para>id: <html:input name="id"/></para> <para>url: <html:input name="url"/></para> <para>title: <html:input name="title"/></para> <para>excerpt: <html:input name="excerpt"/></para> <para>blogname: <html:input name="blog_name"/></para> <html:input type="submit"/> </html:form> </article>