XML technologies / CSS / Advanced websites with CSS / Using fonts with CSS / The font-size property / HTML measurements and CSS measurements
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
Font sizes could be specified for web pages even before CSS. HTML provides the size attribute in the <font> tag, with an absolute scale from 1 to 7 and relative values such as +1 or -1 relative to the browser’s preset default value.
The fact that HTML has seven values and CSS offers seven absolute constants has led some people to assume incorrectly that there must be a one-to-one correspondence. There is no such correspondence. Defining <font size="7"> in HTML does not necessarily produce the same result as font-size: xx-large in a CSS rule.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top