Do you avoid using bold tags inside headings?
Updated by Brady Stroud [SSW] 1 year ago. See history
123
<introEmbed
body={<>
You should avoid any extra style tags in your heading text, because it is unnecessary and generates inconsistency.
<imageEmbed
alt="Image"
size="large"
showBorder={false}
figureEmbed={{
preset: "badExample",
figure: 'Bad example – bold tags being used within header tags.',
shouldDisplay: true
}}
src="/uploads/rules/do-you-know-not-to-use-bold-tags-inside-headings/heading-with-bold-tags.png"
/>
<imageEmbed
alt="Image"
size="large"
showBorder={false}
figureEmbed={{
preset: "goodExample",
figure: 'Good example – all styling is being done through CSS.',
shouldDisplay: true
}}
src="/uploads/rules/do-you-know-not-to-use-bold-tags-inside-headings/heading-styled-with-css.png"
/>
</>}
/>
Tip: You can do all the styling via CSS.
Related rules
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.