The nucleus of an atom is located at its center, while the electrons orbit around the nucleus in specific energy levels or electron shells. The nucleus contains positively charged protons and neutral neutrons, while electrons carry a negative charge. The attraction between the positively charged protons in the nucleus and the negatively charged electrons in their respective orbits holds the atom together.