hm.. do not think there are specific definitions for those things when it comes to websites. I would just take them as 'sets of codes that add a certain feature'.
In my case I build each element that I need in a website seperately. So I might build a slide-show script, which requires either a table & few colums in that table as input to run. Or a feedback form. On each site that you build you can then just copy that 'module' and reuse it.
When you are building just one site for private use, it is less critical, I think. But I am sure other people have other opinions 😃