This question was asked in a chemistry class, and it shows that some students may not understand the difference between astronomical bodies and chemical elements. The periodic table is a chart that lists all the known chemical elements, while the sun is a star in our solar system.
“If the Sun Is a Star, Why Is It Not on the Periodic Table?”