How to add backdrop-filter to custom CSS

I was wondering how this CSS element worked. It looks like it automatically applies CSS to the element selected and you list CSS properties without desgnating an #id or classs. How do you define a hover affect or access child elements in a div for example with different id’s? When I was typing in
#myID:hover{
cssproperty: value;
}
it kept getting rid of the {}.