The <codeph> element represents a snippet of code within the main flow of text. The code phrase is displayed in a monospaced font for emphasis. This element is part of the DITA programming domain, a special set of DITA elements designed to document programming tasks, concepts, and reference information.

Content models

See appendix for information about this element in OASIS document type shells.


+ topic/ph pr-d/codeph


<p>The second line of the sample program code, <codeph>Do forever</codeph>, 
represents the start of a loop construct.</p>


The following attributes are available on this element: Universal attribute group, outputclass, and @keyref.

Return to main page.