Using textures in web design

What is the simplest, correct, and sometimes the only possible way to create the illusion of a relief of this or that element (object) in web design (as well as in 2D in general, and ...