From my little experience it seems to me that beginners usually play on the kingside looking for the checkmate. I do not think that is such a bad thing to do until you know better.
So what should you do? Develop your knights, bishops, queen and rooks while at the same time keeping your king safe. Unless you have a reason, it is generally not good to move the pawns in front of your king. Your king supports all three pawns in front of him and the pawns control the four squares in front of them.
Is there a name for that opening by white?
In the picture above notice white's rooks are not developed but they are connected. Only three of black's pieces are ready to defend the kingside. Two of black's protective pawns are advanced creating further weaknesses around the black king. The attack is on and the overwhelming force that white can bring to the kingside with the speed of superior mobility.
In short, develop your pieces not your pawns and get those pieces in position to attack your opponent's king and defend yours. Try to not get your pieces stuck behind your pawns.
I'd love it if others presented similar instructive games on openings.