(a) The diode is drawn as a triangle pointing towards a bar. The flat side of the triangle is the p-side (anode) and the bar is the n-side (cathode). The arrow shows the direction of conventional current when the diode is forward biased, from p to n.

(b) A semiconductor diode is a p-n junction with metallic contacts at its two ends. The contacts let the diode be connected into a circuit, so that an external voltage can be applied across the junction.
(c) In forward bias the p-side is connected (through a resistor) to the positive terminal of the battery and the n-side to the negative terminal, as in the right-hand circuit of the figure. Conventional current flows through the diode from the p-side to the n-side, in the direction of the arrow in its symbol.