<userinput>

User input is text that a user enters, such as a response to an application or system prompt.

The <userinput> element is specialized from <ph>. It is defined in the software domain module.

(Text | <data> | <foreign> | <keyword> | <term> | <text>)*

Not contained by any element.

Zero or more of the following
  • Text
  • <data>
  • <foreign>
  • <keyword>
  • <term>
  • <text>

Not contained by any element.

+ topic/ph sw-d/userinput

The <userinput> element is specialized from <ph>. It is defined in the sw-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.

In the following code sample, the <userinput> element identifies text that a user should type at the command prompt:

<p>From a DOS command prompt, type <userinput>dir</userimput> to view a list
of files in the current directory.</p>