Your question is Natural Language to HTML. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Generate HTML from natural language descriptions.
Implement a practical prototype that converts descriptions of simple interfaces into semantically valid HTML. Explain how you would preprocess paired descriptions and HTML, choose or fine-tune a language model, constrain unsafe output, and evaluate both textual and rendered correctness.
Your solution should include executable Python, representative training examples, and an evaluation procedure that checks HTML validity, semantic structure, and whether requested elements are present.