<codeph>
A code phrase is a small portion of source code, machine code, or text that is displayed in-line.
Rendering expectations
The content of the <codeph>
element is typically rendered in a
monospaced font.
Specialization hierarchy
The <codeph>
element is specialized from <ph>
. It is
defined in the programming domain module.
Attributes
The following attributes are
available on this element: universal
attributes and @keyref
.
Example
In the following code sample, the <codeph>
element identifies a code
snippet. The code snippet will be rendered in-line in the paragraph.
<p>The second line of the sample program code, <codeph>Do forever</codeph>,
represents the start of a loop construct.</p>