We give an overview of the special challenges regarding target development and production for accelerator-based heavy and superheavy-nuclei experiments in the past and perspectives for the future. Production of ever heavier elements, studies of heavy-element production in fusion or transfer reactions, spectroscopic investigations on their nuclear structure and decay and on the fission processes with fragment analyses, laser spectroscopic studies of their atomic structure, high-precision mass measurements as well as chemical studies are lively fields of current science. The ever-increasing beam intensities, feasible with new accelerator development, are crucial for the synthesis of superheavy elements because of the low cross sections for many of the reactions. Therefore, the development of target and backing materials with higher durability and experiment lifetime is increasingly important. Here we concentrate on the techniques necessary for the production of targets that are needed for experiments in this special field of interest. For the future, also development on target monitoring, target cooling, and beam intensity profile shaping techniques will play an important role, but are not in the focus of this article.