<option>

The <option> element specifies a permitted value for a parameter or configuration.

The <option> element is specialized from <keyword>. It is defined in the programming domain module.

(Text | <text> )*

Contained by

<alt> , <author> , <b> , <booklibrary> , <booknumber> , <bookpartno> , <booktitlealt> , <brand> , <category> , <change-request-id> , <change-request-system> , <change-revisionid> , <change-summary> , <cite> , <codeblock> , <codeph> , <component> , <consequence> , <coords> , <copyrholder> , <data> , <day> , <dd> , <ddhd> , <delim> , <desc> , <div> , <draft-comment> , <dt> , <dthd> , <edition> , <em> , <entry> , <example> , <fallback> , <featnum> , <figgroup> , <filepath> , <fn> , <fragref> , <howtoavoid> , <hwcontrol> , <i> , <index-see> , <index-see-also> , <indexterm> , <isbn> , <keytext> , <keywords> , <li> , <line-through> , <lines> , <linktitle> , <lq> , <mainbooktitle> , <month> , <msgblock> , <msgph> , <navtitle> , <note> , <oper> , <organization> , <overline> , <p> , <partno> , <pd> , <person> , <ph> , <platform> , <pre> , <printlocation> , <prodname> , <prognum> , <pt> , <publisher> , <q> , <repsep> , <revisionid> , <screen> , <searchtitle> , <sep> , <series> , <shortdesc> , <sli> , <sort-as> , <source> , <stentry> , <strong> , <sub> , <subtitle> , <summary> , <sup> , <synnote> , <synph> , <systemoutput> , <title> , <titlealt> , <titlehint> , <tt> , <typeofhazard> , <u> , <uicontrol> , <userinput> , <var> , <volume> , <xref> , <year>

Zero or more of the following
  • Text
  • <text>

Contained by

+ topic/keyword pr-d/option

The <option> element is specialized from <keyword> . It is defined in the pr-domain module.

The following attributes are available on this element: universal attributes and @keyref.

The following attributes are available on this element: universal attributes and the attributes defined below.

Specifies a key name that acts as a redirectable reference based on a key definition within a map. See STUB CONTENT for information on using this attribute.

For HDITA, the equivalent of @keyref is @data-keyref

Example

This section is non-normative.

This section contains examples of how the <option> element can be used.

Example 1. Parameter values

In the following code sample, the <option> element is used to specify permitted values for a parameter:

<p> You can use the <parmname>map-order</parmname> parameter to specify 
if the order of the frontmatter and backmatter content is retained. The allowed 
values are <option>keep</option> and <option>trash</option>; the default value is 
<option>trash</option>.</p>
Example 2. Configuration option

In the following code sample, the <option> element is used to specify an option that modifies a configuration:

<p>You can purchase the <option>Sports Model</option> package in order
to configure your automobile with the latest sports suspension, bonnet stripes, 
a roof spoiler and an aero body kit.</p>