VOOZH about

URL: https://www.geeksforgeeks.org/css/css-value-initial/

⇱ CSS Value | Initial - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS Value | Initial

Last Updated : 24 Aug, 2022

The initial value keyword is used to set an element's CSS property to its default value.

The initial keyword can be used for any CSS property, and on any HTML element.

Syntax:

property_name: initial;

Example 1: setting font size

Output:

👁 Image

Example 2: Unsetting the font color to equivalent parent element's value.

Output:

👁 Image

Supported Browsers:

  • Chrome 1
  • Safari 1.2
  • Edge 13
  • Firefox 19
  • Opera 15
Comment
Article Tags: