◇◆
<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
<abbrev>, <abbrev-journal-title>, <addr-line>, <aff>, <alt-title>, <anonymous>, <article-title>, <attrib>, <award-id>, <bold>, <chapter-title>, <chem-struct>, <code>, <collab>, <collab-name>, <comment>, <compound-kwd-part>, <compound-subject-part>, <conf-acronym>, <conf-date>, <conf-loc>, <conf-name>, <conf-num>, <conf-sponsor>, <conf-theme>, <copyright-statement>, <corresp>, <data-title>, <date-in-citation>, <def-head>, <degrees>, <disp-formula>, <edition>, <element-citation>, <email>, <etal>, <ext-link>, <fax>, <fixed-case>, <funding-source>, <funding-statement>, <given-names>, <gov>, <history>, <inline-formula>, <inline-media>, <inline-supplementary-material>, <institution>, <issue>, <issue-part>, <issue-sponsor>, <issue-subtitle>, <issue-title>, <italic>, <journal-subtitle>, <journal-title>, <kwd>, <label>, <license-p>, <meta-name>, <meta-value>, <mixed-citation>, <monospace>, <named-content>, <on-behalf-of>, <overline>, <p>, <part-title>, <patent>, <phone>, <prefix>, <preformat>, <price>, <product>, <publisher-loc>, <publisher-name>, <rb>, <related-article>, <related-object>, <resource-name>, <role>, <roman>, <sans-serif>, <sc>, <see>, <see-also>, <self-uri>, <series>, <series-text>, <series-title>, <sig>, <sig-block>, <size>, <source>, <speaker>, <std>, <std-organization>, <strike>, <string-conf>, <string-date>, <string-name>, <styled-content>, <sub>, <subject>, <subtitle>, <suffix>, <sup>, <supplement>, <support-source>, <surname>, <target>, <td>, <term>, <term-head>, <textual-form>, <th>, <title>, <trans-source>, <trans-subtitle>, <trans-title>, <underline>, <unstructured-kwd-group>, <uri>, <verse-line>, <version>, <volume>, <volume-id>, <volume-series>, <x>, <xref>
Description
Any combination of:
- Text, numbers, or special characters
- Linking Elements
- Related Material Elements
- <hr> Horizontal Rule
- Emphasis Elements
- <bold> Bold
- <fixed-case> Fixed Case
- <italic> Italic
- <monospace> Monospace Text (Typewriter Text)
- <overline> Overline
- <overline-start> Overline Start
- <overline-end> Overline End
- <roman> Roman
- <sans-serif> Sans Serif
- <sc> Small Caps
- <strike> Strike Through
- <underline> Underline
- <underline-start> Underline Start
- <underline-end> Underline End
- <ruby> Ruby Annotation Wrapper
- <alternatives> Alternatives For Processing
- Inline Display Elements
- Inline Math Elements
- Math Elements
- Other Inline Elements
- Internal Linking Elements
- Baseline Change Elements
- <x> X - Generated Text and Punctuation
- <break> Line Break
Content Model
<!ELEMENT monospace (#PCDATA %emphasized-text;)* >
Expanded Content Model
(#PCDATA | email | ext-link | uri | inline-supplementary-material | related-article | related-object | hr | bold | fixed-case | italic | monospace | overline | overline-start | overline-end | roman | sans-serif | sc | strike | underline | underline-start | underline-end | ruby | alternatives | inline-graphic | inline-media | private-char | chem-struct | inline-formula | tex-math | mml:math | abbrev | index-term | index-term-range-end | milestone-end | milestone-start | named-content | styled-content | fn | target | xref | sub | sup | x | break)*
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>
...