Category
Code & Dev

Accessible, Semantic HTML Website Requirements

Add these requirements when asking ChatGPT to generate a website, to encourage semantic, accessible, maintainable code.

By Threads — Published on

Prompt template

Format
Text
Outputs
Website_code (code)
When generating a website, use semantic HTML5 elements such as <header>, <main>, <section>, and <footer>. Maintain a logical heading hierarchy from H1 to H3, and add an aria-label attribute to every icon and button. Produce clean code that is ready for further development and supports search engines and screen readers.

Comments — 0

Related prompts

Browse all prompts