What a diode does
A diode is a one-way valve for current. Current goes in at its anode and out of its cathode, the end marked with a stripe, and it won't go the other way at all.
Its symbol says the same: an arrow pointing the way current can flow, against a bar that stops it flowing back.

Build the loop in the picture: from the red (+) rail, the diode with its stripe away from the battery's +, then a 470 Ω resistor, then the LED (long leg first), back to the black (−) rail.
Now you'll turn only the diode round, so its stripe faces the + rail. What will the LED do?
- Stay lit, just as bright
- Go dark
- Glow dimmer
- Flicker
Here's the same loop with the diode taken out. Put a diode back in the gap the other way round, stripe towards the + rail. Then press Run and look at the LED.
The loop still has 9 V pushing around it, but almost no current. So where is the battery's voltage? Most of it is across one part. Which?
- The diode
- The resistor
- The LED
- Nowhere: it's used up
A diode is a one-way valve:
- current goes anode → cathode (the stripe), never back;
- forward-biased (anode higher) it conducts, dropping about 0.7 V;
- reverse-biased (cathode higher) it blocks, and has the whole voltage across it.
On a real bench the stripe is the only marking that matters: get it backwards and the circuit just doesn't work (or, across a supply, the diode carries as much current as the supply can give, and burns out). A 1N4148 blocks up to 100 V; push it further and it breaks down and conducts backwards anyway.