Properties
CSS
font-variant
The font-variant property specifies a small-caps variation of the font.
font-variant: normal | small-caps | inherit
| Initial: | normal |
| Applies To: | all elements |
| Inherited: | yes |
| Percentages: | NA |
| Media: | visual |
Values
font-variant: value;
| Value: | Description: |
| inherit | Takes the same computed value as the property for the element's parent |
| normal | Not a small-caps font |
| small-caps | Lower case letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions |
DOM
[window.]document.getElementById("element-id").style.fontVariant = "font-variant";
