h1 (background-color:#ooffoo)
h2(background-color: transparent)
p(background-color:rgb(250,0,025))
The example given on CSS instructional pages(above) uses both.
The trials and tribulations of a mad, middle aged library & information science student, who should have known better?!