The nitrogenous base of a nucleotide is attached to the 1' carbon of the sugar; together these form a nucleoside.
The phosphate group is attached to the 5' carbon, forming a nucleotide.