Become a HubSpot power user — join us for HubSpot Training Day 2017.

COS-General

Can my custom class begin with a number?

Last updated: October 6, 2015

In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit.

Was this article helpful?