The w stands for winter. It characterizes the properties of the old when cold and not under sheer.
The first number is the viscosity of the base oil in the bottle. In the case of 10W30 the oil in the bottle is a 10 weight oil.
The last number is the viscosity under sheer and higher...