Do you know to not use FONT tags?

Updated by Tiago Araújo [SSW] 12 months ago. See history

123

The <font> tag is supported in all major browsers, however it is deprecated since HTML 4... so it should **not** be used. Learn more at [w3schools.com](https://www.w3schools.com/tags/tag_font.asp).
<asideEmbed
  variant="greybox"
  body={<>
    &lt;font&gt;Some text&lt;/font&gt;
  </>}
  figureEmbed={{
    preset: "badExample",
    figure: 'Bad example - Using deprecated HTML &lt;font&gt; tag',
    shouldDisplay: true
  }}
/>

<asideEmbed
  variant="greybox"
  body={<>
    &lt;p&gt;My brother has \<span style="color:blue"\>blue\</span\> eyes.&lt;/p&gt;
  </>}
  figureEmbed={{
    preset: "goodExample",
    figure: 'Good example - Using &lt;p&gt; for texts and &lt;span&gt; for texts\' variations',
    shouldDisplay: true
  }}
/>

**Tip:** The best practice is to CSS classes to define the font family, size, and color.

<asideEmbed
  variant="codeauditor"
  body={<>
    We have a program called [SSW CodeAuditor](https://codeauditor.com) to check for this rule.
  </>}
  figureEmbed={{
    preset: "default",
    figure: 'XXX',
    shouldDisplay: false
  }}
/>
acknowledgements
related rules