Emphasis components
The emphasis elements are used to emphasize text that is important or serious.
Emphasized text
Emphasis indicates special meaning or particular importance.
Syntax
The syntax for representing this component varies depending on the authoring format:
Authoring format | Syntax and example |
---|---|
XDITA |
|
HDITA |
|
MDITA (core and extended profiles) |
Asterisk (
|
Rendering expectations
For Western languages, the emphasis component is typically rendered in an italic font.
Attributes
The available attributes vary based on the authoring format:
- XDITA and HDITA
- The following attributes are available on this element: localization attributes, universal
attributes, and
@keyref
. - MDITA
- For the MDITA core profile, the equivalent
of the XDITA
@keyref
attribute is supported. For the MDITA extended profile, attributes can be specified by using the HDITA representation.
Examples
This section is non-normative.
The following example demonstrates the use of emphasized text in an XDITA topic.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD LIGHTWEIGHT DITA Topic//EN" "lw-topic.dtd">
<topic id="franchise-intro">
<title>An innovative, attractive, and out of the ordinary concept</title>
<body>
<p>We offer more than 30 <em>exclusive</em> creations of original rolls, from the
California roll to sushi with BBQ chicken or grilled steak.</p>
</body>
</topic>
The following example demonstrates the use of emphasized text in an HDITA topic.
<!DOCTYPE html>
<title>An innovative, attractive, and out of the ordinary concept</title>
<body>
<article id="franchise-intro">
<h1>An innovative, attractive, and out of the ordinary concept</h1>
<p>We offer more than 30 <em>exclusive</em> creations of original rolls, from the California roll to sushi with BBQ chicken or grilled steak.</p>
</article>
</body>
The following example demonstrates the use of emphasized text in an MDITA topic.
# An innovative, attractive, and out of the ordinary concept
We offer more than 30 *exclusive* creations of original rolls, from the California roll to sushi with BBQ chicken or grilled steak.
Strong text
Strong text is text that is of greater importance than the surrounding text.
Syntax
The syntax for representing this component varies depending on the authoring format:
Authoring format | Syntax and example |
---|---|
XDITA |
|
HDITA |
|
MDITA |
Two asterisks (
|
Rendering expectations
The strong component is typically rendered in a bold font.
Attributes
The available attributes vary based on the authoring format:
- XDITA and HDITA
- The following attributes are available on this element: localization attributes, universal
attributes, and
@keyref
. - MDITA
- For the MDITA core profile, the equivalent
of the XDITA
@keyref
attribute is supported. For the MDITA extended profile, attributes can be specified by using the HDITA representation.
Examples
This section is non-normative.
The following example demonstrates the use of strong text in an XDITA topic.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD LIGHTWEIGHT DITA Topic//EN" "lw-topic.dtd">
<topic id="franchise-plan">
<title>Make a plan! Start your future today!</title>
<body>
<ol>
<li><p>Contact one of our franchise advisors</p></li>
<li><p>Pick a <strong>strategic</strong> location for your restaurant</p></li>
<li><p>Follow our franchise guide</p></li>
</ol>
</body>
</topic>
The following example demonstrates the use of strong text in an HDITA topic.
<!DOCTYPE html>
<title>Make a plan! Start your future today!</title>
<body>
<article id="franchise-plan">
<h1>Make a plan! Start your future today!</h1>
<ol>
<li>
<p>Contact one of our franchise advisors</p>
</li>
<li>
<p>Pick a <strong>strategic</strong> location for your restaurant</p>
</li>
<li>
<p>Follow our franchise guide</p>
</li>
</ol>
</article>
</body>
The following example demonstrates the use of strong text in an MDITA topic.
# Make a plan! Start your future today!
1. Contact one of our franchise advisors
2. Pick a **strategic** location for your restaurant
3. Follow our franchise guide