- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set the font variant with CSS
To set the font variant, use the font-variant property. Set the font to small-caps and normal.
You can try to run the following code to set the font-variant to small-caps with CSS −
<html> <head> </head> <body> <p style = "font-variant:small-caps;"> This text will be rendered as small caps </p> </body> </html>
- Related Articles
- Font Variant in CSS
- CSS font-variant Property
- Usage of font-variant property in CSS
- Set the font style with CSS
- Set the font weight with CSS
- Set the font size with CSS
- Set the font family with CSS
- Shorthand property to set the font with CSS
- Set Font Size with Pixels using CSS
- Set Font Size with em using CSS
- Set the font stretch of an element with CSS
- Set different font families for screen and print with CSS
- Set Responsive Font Size using CSS
- Change the font face with CSS
- Make a font italic with CSS

Advertisements