In a semi-infinite crystal, the periodic potential is destroyed at the surface, and the electronic wave functions exponentially decay from the surface to both sides. Such localized electronic states in the vicinity of the surface are known as Tamm surface states. In analogy to the electronic Tamm states, in recent years, optical Tamm states have been found at the surface of the truncated photonic crystal composed of two kinds of dielectrics. Very recently, novel types of optical Tamm states including backward Tamm states in which the phase velocity and the group velocity of optical waves are in the opposite direction have been discovered in the photonic structures containing metamaterials. In fact, the concepts in electronic field and photonic field can inspire each other. Many unique phenomena in photonic systems can also be mapped to the electronic systems. In this paper, we study the novel types of electronic Tamm states in electronic systems, inspired by the novel types of optical Tamm states in photonic structures. #br#At first, comparing Maxwell equations with Schrodinger equations, one can see a correspondence between the parameters in electromagnetic system and the parameters in the electronic system. In particular, Hg1-xCdxTe semiconductors with special electronic band structures can realize various electronic materials in analogy to the optical metamaterials with various values of permittivity and permeability. By tuning the parameter x of Hg1-xCdxTe, we obtain a variety of metamaterial-like electronic materials, in analogy to the single-negative metamaterials, the double-negative metamaterials and the near-zero-index metamaterials in optical systems. Then, inspired by the one-dimensional heterostructures with metamaterials that generate optical Tamm states, we design a one-dimensional electronic heterostructure consisting of Hg0.847Cd0.153Te and CdTe/HgTe superlattice. When Hg0.847Cd0.153Te is analogous to the double-negative metamaterial, we find the backward electronic Tamm states in which the phase velocity and the group velocity of electronic waves are in the opposite directions. When Hg0.847Cd0.153Te is analogous to the near-zero-index metamaterial, we find a novel electronic Tamm states in which the amplitude of the electronic probability decays very slowly in Hg0.847Cd0.153Te. The discovery of these new types of electronic Tamm states enlarges our knowledge of electronic surface states.