diff --git a/src/assessments/semantics/test-steps/emphasis.tsx b/src/assessments/semantics/test-steps/emphasis.tsx index 25422d699c4..e5ad6983a51 100644 --- a/src/assessments/semantics/test-steps/emphasis.tsx +++ b/src/assessments/semantics/test-steps/emphasis.tsx @@ -19,10 +19,16 @@ const emphasisHowToTest: JSX.Element = (
This procedure uses the browser Developer Tools (F12) to inspect the page's HTML.
Words and phrases that are visually emphasized must be contained within semantically correct elements.
++ Words and phrases that are visually emphasized to convey semantic meaning or importance commonly should be contained within + semantically correct elements. +
People with good vision can infer from visual styling that a word or phrase is especially important. For example, it might be displayed using bold or italic font. Unless the visually emphasized word or phrase is also contained in a semantically correct element, people who use screen readers won't know that it's emphasized.
++ However, not all bold or italic text requires semantic markup. Visual variations in font-weight or style used purely for design + purposes, such as distinguishing labels from values or creating visual hierarchy, do not need to be marked up semantically + unless they convey emphasis or importance. +
- Contain the emphasized word or phrase in a semantically correct element: + When visual emphasis conveys semantic meaning, contain the emphasized word or phrase in a semantically correct element:
+ Do not use
These carrots are []not[] crunchy!
`} /> +Without the unnecessary strong element, the heading correctly conveys the content's importance.
} + passExample={`Using a span for the separator correctly indicates it's for visual presentation only.
} + passExample={``} + />- Words and phrases that are visually emphasized must be contained within semantically correct elements. + Words and phrases that are visually emphasized to convey semantic meaning or importance commonly should be contained within semantically correct elements.
People with good vision can infer from visual styling that a word or phrase is especially important. For example, it might be displayed using bold or italic font. Unless the visually emphasized word or phrase is also contained in a semantically correct element, people who use screen readers won't know that it's emphasized.
++ However, not all bold or italic text requires semantic markup. Visual variations in font-weight or style used purely for design purposes, such as distinguishing labels from values or creating visual hierarchy, do not need to be marked up semantically unless they convey emphasis or importance. +
- Contain the emphasized word or phrase in a semantically correct element: + When visual emphasis conveys semantic meaning, contain the emphasized word or phrase in a semantically correct element:
+ Do not use + + <strong> + + or + + <em> + + for text that is bold or italic purely for visual design, such as labels, identifiers, or creating visual separation between parts of a heading. +
+ The bold SKU in this heading is purely for visual styling, not to convey emphasis. Using + + <strong> + + here is unnecessary since the heading already provides semantic importance. +
++ Without the unnecessary strong element, the heading correctly conveys the content's importance. +
++ The italic separators in this breadcrumb are being used for styling purposes, not to convey emphasis. +
++ Using a span for the separator correctly indicates it's for visual presentation only. +
+