CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS opacity Property

CSS opacity Property



The opacity property is used to specify the opacity level for an element. It is also known as transparency-level. Its value of 1 is opaque at all, 0.5 is 50% see-through, and 0 is completely transparent.


Default Value:-


Its default value is 1.




Its syntax is:- opacity: number | initial | inherit;


Further Explanation:-


Value Description
number Specifies the opacity from 0.0 to 1.0.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS