Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

CSS: “font-size”: “px” is not a “font-size” value.

The value passed to the font-size property is invalid, probably missing the amount of px.

The font-size CSS property sets the size of the font, and this size can be expressed in different units, like em, % or px.


<!DOCTYPE html>
	<title>Font-size Example</title>
		p {
			font-size: 16px;
	<p>This is an example of a paragraph with a font-size of 16px.</p>

Learn more:

Related W3C validator issues