Well first you have to start living for yourself and forget what others will think of you
Z_Zidane
I think one of the most important factor of feeling confident are accepting, appreciating and acknowledging yourself.
It gives a healthy sense of self.