Heresy means anything against the established belief Which creates doubts in the minds of even intelligents whereas dogma implies an established opinion which is questioned by only a few. For example, wave theory of light came into existence only as a heresy in the beginning but finally ended as "dogma" whereas Einstein and other replaced it by quantum theory of light.