Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>By the <a href="http://www.w3.org/TR/REC-html40/present/graphics.html#edef-FONT" rel="nofollow">HTML 4.01 specification</a>, the value of the <code>size</code> attribute in a <code>font</code> element has a numeric value, without any unit, and the value is taken as an index to a browser-dependent array of sizes. Besides, <code>4px</code> would make little size if taken as in CSS to mean 4 pixels – at that size, almost all fonts become illegible. Spaces are significant in font names, so <code>HelveticaNeue</code> is quite different from <code>Helvetica Neue</code>. And the <code>color</code> attribute value must be either a 6-digit hexcode prefixed by <code>#</code> or one of the keywords defined in the spec.</p> <p>The spurious <code>&lt;/span&gt;</code> tag is a syntax error but normally ignored by browsers. However, if there was a preceding <code>&lt;span&gt;</code> tag that hasn’t had a matching end tag yet, then (as part of common error recovery) the end tag ends its effect.</p> <p>So it’s a miracle that the code works anywhere. It does that only because you are using it in a special environment where <code>font</code> markup is interpreted in a manner that happens to coincide with your expectations.</p> <p>Provided that by <code>4px</code> you don’t mean 4 pixels but HTML size 4 in a scale from 1 to 7, the size next larger than the default, then the following would be conforming:</p> <pre><code>&lt;font size="4" face="Helvetica Neue" style="color:#313131;"&gt;Text hereABC&lt;/font&gt; </code></pre> <p>though most people would regard the use of CSS as more appropriate. In CSS, you can use e.g. color values like <code>rgb(49,49,49)</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload