X-rays penetrate different tissues in the body at varying degrees. Dense structures, such as bones, absorb more X-rays and appear white on the X-ray film, while less dense tissues, such as muscles and organs, appear in shades of gray. This differential absorption allows for detailed imaging of internal structures, aiding in the diagnosis of various conditions.