How clothing affects the image that you present others

Consider the clothing you wear in different situations, such as in class, attending a religious or spiritual ceremony, etc- How does this affect the image that you present to others? How does wearing different clothing affect how you feel about yourself? Are there any implicit or explicit rules that regulate what types of clothes you wear?