Dermal foams are promising drug delivery systems due to their many advantages and ease of application. Foams are also considered a novelty in the field of dermatology. In particular, they are beneficial for the treatment of skin conditions where patients have highly inflamed, swollen, infected and sensitive skin, as the application of the foam to the skin surface to be treated minimizes the need for skin contact. In order to formulate foams, it is necessary to know which material and process parameters influence the quality characteristics of foams and which methods can be used to study foams; this part of the research is assisted by the QbD approach. By using the QbD concept, it contributed during the development process to ensure quality-based development. With initial risk assessment, the critical material attributes (CMAs) and the critical process parameters (CPPs) were identified to ensure the required critical quality attributes (CQAs). During the initial risk assessment, five high-risk CQAs, namely foam volume stability, foam expansion, cross point, the initial values of the number and size of bubbles, and three medium-risk CQAs, namely spreadability, relative foam density and viscosity of the liquid system were identified and investigated. In this research, different types of polymers (xanthan gum, hydroxyethylcellulose, different types of hyaluronic acids) were used to improve the properties of foam formulations. The formulations containing xanthan gum and high molecular weight hyaluronic acid had good foam properties and will be appropriate delivery systems for an active pharmaceutical ingredient. Overall, the polymer content had a great effect on the properties of the foams. Different polymers affect the properties of foams in different ways. When used in combination, the methods reinforce each other and help to select a formula for dermal application.