Think of an x-ray tube like a really special flashlight that can see inside your body to help doctors understand what's going on inside.
The x-ray tube is made up of two parts: the cathode and the anode. The cathode is a filament (kind of like a really thin wire) that gets heated up. When it gets hot enough, it starts to release electrons into a vacuum (an empty space with no air) inside the tube.
The anode is a metal disc that's connected to a high voltage power source. When the electrons released by the cathode hit the anode, they create X-rays which can pass through your body and produce an image that shows your bones and other structures.
It's important to use x-rays safely because they can be harmful if you're exposed to too many. That's why the technician will make sure you're wearing a lead gown or other protective gear and only take the x-ray images that are really necessary for your healthcare.