"How'd" is a contraction of "How did".
Some contractions are commonly accepted in written English, such as "can't", "won't", and "I'm". But "How'd" is still not completely accepted. You can use it when you're speaking, or when you're quoting what someone says. For example, in a novel:
"How'd she get out of the house?" Bobby asked, accusingly.