hello there anon!
first, i would study some websites that explain you how to code! code-bug made a good masterlist on that! here.
second, you should start with a base code and play around with the code once you think youre ready! heres a whole blog full of base codes!