They're essentially the same thing.
If anything, the difference between them is similar to the difference between western cursive / print/ type writing.
Any person able to read japanese will comprehend and accept both writing styles as well.
A more "complete" explanation on the matter could probably be given to you by Toritoribe'san(japanese native) though.
Be aware that it isnt much of a big deal and should not hinder your progress studying!