Do schools in the USA generally sing the national anthem or say the pledge of allegiance?

Where I live our schools sing our national anthem every morning, but every tv show I have seen that features an USA classroom they usually say the pledge. Which is more common and is there a reason one is done over the other?

Thanks! 

RoVale2021-04-07T14:23:23Z

It's been a long time since I was in school and I attended different schools. Some schools had students recite the Pledge of Allegiance while others didn't. I never once had to sing the National Anthem.