CSS var() Function (original) (raw)

Last Updated : 30 Aug, 2024

The var() function in CSS is used to insert a value for a custom property.

**Syntax:

var( custom_property, value )

**Parameters: This function accepts two parameters which are listed below:

**Example: The below program illustrates the var() function in CSS:

html `

var() function