Rule Definition
is obsolete; styling belongs in CSS.
Remediation
Move color, size, and font-family into classes / CSS.
Violation Code Sample
<font color="red" face="Arial" size="3">Warning!</font>
Fixed Code Sample
<span class="warning-text">Warning!</span>
# CSS
.warning-text {
color: red;
font-family: Arial, sans-serif;
font-size: 1rem;
}
Reference
MDN – element (obsolete):
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font
WHATWG HTML Living Standard – Obsolete elements:
https://html.spec.whatwg.org/multipage/obsolete.html
Related Technologies
Technical Criterion
CWE-710 - Improper Adherence to Coding Standards [Pillar]
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.