The “opacity” property is used in CSS to make an element transparent or semi-transparent. This property takes a value from 0 to 1, where 0 represents completely transparent and 1 represents fully opaque.
Here is the basic syntax to use the opacity property:
```
element {
opacity: number;
}
```
The number can be any value from 0 to 1. A value of 0 will make the element completely transparent, while a value of 1 would make the element fully visible.
Here is an example:
```
div {
opacity: 0.5;
}
```
In the example above, a div element will appear semi-transparent because its opacity is set to 0.5.
If you want child elements to be unaffected by the opacity of the parent element, you can use RGBA color values for the parent element instead:
```
div {
background-color: rgba(0, 0, 0, 0.5); /* The last value is the alpha (transparency) value */
}
```
In the example above, the div will have a semi-transparent black (`rgb(0, 0, 0)`) background color. The child elements will not inherit the transparency of the parent div.