- Home
- /
- CSS Fonts
CSS Tutorial
Introduction
CSS Properties
CSS Designing
CSS Advance Topics
CSS FAQs
- Home
- /
- CSS Fonts
CSS Fonts
Fonts define the personality of your website. Whether you’re building a professional blog or a fun kids’ portal, fonts help shape the look and feel of your content. Let’s explore how to customize fonts using CSS.
Font Color
This sets the color of the text using names, hex codes, RGB, or HSL values.
Learn With Arshyan – Font Color Example

Font Size
Control how big or small the text appears.
Small font
Medium font
Large font
Font size: 24px
Font size: 1.5em
Font size: 2rem
Font size: 80%

Font Style
Use this to make text italic or oblique.
Italic text
Normal text
Oblique text

Font Variant
Great for stylistic tweaks like small-caps.
Font variant: normal
Font variant: small-caps

Font Weight
Control how thick or bold your text appears.
Font weight: 100
Font weight: 400 (normal)
Font weight: 700 (bold)
Font weight: lighter
Font weight: bold
Font weight: bolder

Font Family
Serif Font Example
Sans-serif Font Example
Monospace Font Example

Custom Fonts (Google Fonts)
Use stylish fonts from Google Fonts:
Visit https://fonts.google.com
Choose your font (e.g., Poppins)
Copy the
@import
link into your<style>
or CSS fileUse the font-family in your selectors
Learn With Arshyan – Custom Font (Poppins)
