◇◆
<monospace> Monospace Text (Typewriter Text)
Used to mark text that should appear in a non-proportional font, such as courier.
Usage/Remarks
The <monospace> is used for monospaced words that are inline with
other text, for example, computer code fragments, parameters and operators, etc. For block monospace
elements, particularly
where spaces and line breaks also need to be preserved, use either the generic block
structural element
<preformat> (which can hold ASCII art, man-machine
dialog, or shape poetry) or the semantically explicit element
<code> (which holds script or computer coding
examples).
Attributes
Multi-lang Attributes
Models and Context
May be contained in
<addr-line>, <aff>, <alt-title>, <article-title>, <attrib>, <bold>, <chapter-title>, <chem-struct>, <code>, <collab>, <collab-name>, <comment>, <compound-kwd-part>, <compound-subject-part>, <conf-theme>, <copyright-statement>, <data-title>, <def-head>, <disp-formula>, <element-citation>, <ext-link>, <fixed-case>, <funding-statement>, <gov>, <inline-formula>, <inline-media>, <inline-supplementary-material>, <italic>, <kwd>, <license-p>, <meta-value>, <mixed-citation>, <monospace>, <named-content>, <on-behalf-of>, <overline>, <p>, <part-title>, <preformat>, <price>, <product>, <rb>, <related-article>, <related-object>, <resource-name>, <roman>, <sans-serif>, <sc>, <see>, <see-also>, <series>, <source>, <std>, <strike>, <styled-content>, <sub>, <subject>, <subtitle>, <sup>, <supplement>, <support-source>, <target>, <td>, <term>, <term-head>, <textual-form>, <th>, <title>, <trans-source>, <trans-title>, <underline>, <verse-line>, <xref>
Description
Any combination of:
- Text, numbers, or special characters
- Linking Elements
- Related Material Elements
- Emphasis Elements
- <alternatives> Alternatives For Processing
- Inline Display Elements
- Inline Math Elements
- Other Inline Elements
- Internal Linking Elements
- Baseline Change Elements
Content Model
<!ELEMENT monospace (#PCDATA %emphasized-text;)* >
Expanded Content Model
(#PCDATA | email | ext-link | uri | inline-supplementary-material | related-article | related-object | bold | fixed-case | italic | monospace | overline | roman | sans-serif | sc | strike | underline | ruby | alternatives | inline-graphic | inline-media | chem-struct | inline-formula | abbrev | index-term | index-term-range-end | named-content | styled-content | fn | target | xref | sub | sup)*
Tagged Samples
Monospaced identifiers
... <p>... An example of one tag and its anti-tag complement is shown below:</p> <p> <monospace>5′-TACT.TTAC.ACAT.ATCA.CTTT.CTTT.CAAA.AATC-3′</monospace> </p> <p> <monospace>3′-ATGA.AATG.TGTA.TAGT.GAAA.GAAA.GTTT.TTAG-5′</monospace> </p> <p>Because of the words used to construct the tag repertoire ...</p> ...
XML tag in text
...
<p>Underlined text is tagged using the element <monospace><underline></monospace>.</p>
...