Surfing just looks so cool and it is so, riding on the waves, enjoying the nature and the water and feeling the fresh salty wind makes people understand so much more about our world, but also be much more calm. They still needed to learn it, as do you, so take classes or just try to figure it out by yourself, in both ways these tips can help you. There are also other facts and interesting things about water sports in general on this website, so make sure to check it out.
First try skating, it will help you learn how to ride the board and how to keep your balance, get good at it and then go over to the water sport version - surfing. Feel the waves in order to understand and realize what is coming and how you should behave in order to know what the best moment is to jump on.
It is good to surf with people that are better than you, they will help you and push you to go again and again until you master it. Never stop doing it and don't be too much proud of yourself and your skills because that won't help you, but be confident.
Do fitness in order to prepare your body on what is coming, because surfboarding is not only lying on a board, waiting on waves, and jumping on a board when they come, it is more body action than many other water sports and sports in general.
Always warm up before a session, for obvious reasons and learn how to properly breath, because many people don't do it properly and it is really important in every water sport and especially in surfboarding, because of the high chance of getting into water, and staying there long, because of the waves.