What is the meaning of the lyrics of the Beatles song 'Yellow Submarine'?

It's a children's song written with simple lyrics so that kids could sing it