18. u tag used to format text


u tag incorrect example

Description: The u tag is used to underline text.

Context: Styling-specific tags are discouraged for ADA-compliance, adjustments to appearance strictly for aesthetics should be restricted to CSS.

        <a href="summer_housing">Summer Housing</a>

How to fix it: Consider the following: If the text should be emphasized use semantic elements. If the text is a heading, an H-tag (such as H1, H2, H3…) should be used instead. If the text is highlighted as a visual effect, CSS should be used to do this.

<a class="bold underlined" href="summer_housing">Summer Housing</a>
    font-weight: bold;
    text-decoration: underline;

Techniques: G115G140H49