What are the different ways to secure a web application?

Being new to website creation, I’m learning about the many methods for protecting web apps. Using plugins or other sources, can someone please explain how I may secure my online applications?

Can someone provide me with a more thorough description of web applications and their function?

Thanks!