Placing their tail between their legs is a dogs way of blocking the release of scent from their anal glands, thus preventing other canines from sensing their presence. Accompanied by shaking, which is a classic symbol of doggy anxiety, this behavior is sending a message that says, its OK pretend Im not here.