As a web developer keep the following things in mind

1. Be on the look out for XSS (Cross Site Scripting) i.e users should not be
able to insert HTML code.

2. Beware of SQL injection.

3. Avoid using hidden tags.

above is in no way a complete list, but is enough to get started once you get
going you will see things yourself.