Accessible, Semantic HTML Website Requirements
Add these requirements when asking ChatGPT to generate a website, to encourage semantic, accessible, maintainable code.
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.
What you'll create
A website brief specifies HTML5 landmarks, H1-to-H3 hierarchy and accessible labels, aiming for clean code suitable for further development.
Frequently asked questions
Which page landmarks are named?
The source lists header, main, section and footer elements.
Comments
Tried this prompt? Share what you made, compare results, or ask a question