There are two ways of connecting diodes in a circuit.
Use conventional current flow.
We generally connect the anode toward the positive side of the circuit and the cathode, toward the negative side of the circuit.
This way of connecting a diode is called forward-biasing the diode.
This allows current to flow through the circuit.
Circuit 1. Forward biased diode
Circuit 2. Reverse biased diode