--- url: "https://www.w3.org/WAI/WCAG22/Techniques/html/H49" titulek: "H49: Using semantic markup to mark emphasized or special text | WAI | W3C" h1: "Technique H49:Using semantic markup to mark emphasized or special text" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:42:35" znaku: 4366 slov: 641 kodovani: "utf-8" sha256: "8f7081670105dda996a7792e649c215d272b05ca2f4cc162643fa84dd8b41291" --- # Technique H49:Using semantic markup to mark emphasized or special text ## About this Technique This technique relates to [1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) (**Sufficient**, together with [G115: Using semantic elements to mark up structure](../general/G115)). This technique applies to HTML. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to demonstrate how semantic markup can be used to mark emphasized or special text so that it can be programmatically determined. Using semantic markup to mark emphasized or special text also provides structure to the document. User agents can then make the structure perceivable to the user, for example using a different visual presentation for different types of structures or by using a different voice or pitch in an auditory presentation. Most user agents will visually distinguish text that has been identified using semantic markup. Some assistive technologies provide a mechanism for determining the characteristics of content that has been created using proper semantic markup. ## Examples See [rendered examples of semantic text](../../working-examples/semantic-text/). ### Example 1: Using the `em` and `strong` elements to emphasize text The `em` and `strong` elements are designed to indicate structural emphasis that may be rendered in a variety of ways (font style changes, speech inflection changes, etc.). ``` ... What she really meant to say was, "This is not OK, it is excellent"! ... ``` ### Example 2: Using the `blockquote` element to mark up long quotations from another source This example also demonstrates the use of the `cite` element to specify a reference. ```
The following is an excerpt from the The Story Of My Life by Helen Keller:
``` ### Example 3: Using the `q` element to mark up a shorter quotation from another source Quotation marks aren't manually added to the quote because they are added by the user agent. ```Even in the days before my teacher came, I used to feel along the square stiff boxwood hedges, and, guided by the sense of smell, would find the first violets and lilies. There, too, after a fit of temper, I went to find comfort and to hide my hot face in the cool leaves and grass.
Helen Keller said, Self-pity is our worst enemy and if we yield to it,
we can never do anything good in the world
.
Henry won 1st place in the 9th grade science competition.
The chemical notation for water is H2O.
``` ### Example 5: Using the `code` element to mark up code This example shows use of the `code` element to provide visual emphasis for a CSS rule: ```
.trial {
background-image: url(30daytrial.jpg);
background-position: left top;
background-repeat: no-repeat;
padding-top: 68px;
}
```
## Related Resources
*No endorsement implied.*
- [HTML - Phrasing Content](https://html.spec.whatwg.org/multipage/dom.html#phrasing-content-2) .
- [HTML - `blockquote` element](https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element) .
- [HTML - `code` element](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-code-element) .
- [HTML - `q` element](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-q-element) .
- [HTML - `sub` and `sup` elements](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-sub-and-sup-elements) .
## Tests
### Procedure
1. Examine the content for information that is conveyed through variations in presentation of text.
2. Check that appropriate semantic markup (such as `em` , `strong` , `cite` , `blockquote` , `sub` , and `sup` ) have been used to mark the text that conveys information through variations in text.
### Expected Results
- Check #2 is true.
Back to Top