The use of Large Language Models (LLMs) for code generation is rapidly increasing. While previous investigations on the correctness of AI-generated code are widely present, less focus has been placed on the code's further quality attributes and how it can be improved. An aspect that can be equally important. This thesis aims to fill this gap by investigating how LLMs can be guided to generate code that aligns with software quality principles. Using a mixed methods approach, the study first identifies the aspects developers consider important for code quality through developer interviews and thematic analysis. Subsequently, experiments evaluate how (a) established prompt engineering strategies and (b) three state-of-the-art LLM models affect code quality across a range of programming tasks for class- and function-level code solutions. Quantitative evaluation uses cognitive complexity, maintainability index, and library usage metrics representing quality characteristics important for a few developers with 10 to 30 years of experience in the industry. The result shows that no prompting technique consistently improves code quality across the models compared to the zero-shot baseline. The effectiveness varies across models, with the larger ChatGPT model showing more responsiveness to guidance, for instance, its cognitive complexity-level on ClassEval was reduced on average from 0.92 to 0.70 with the Combined prompting technique. Although optimal prompting techniques are shown to be model-dependent, the potential for enhancing code quality through generic prompt techniques remains considerably constrained.