Interview Question

Create a semantic webpage

Start with semantic, accessible HTML and keep the structure simple.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Create a semantic webpage is a coding task that checks whether you can choose clear, meaningful HTML. • Plan the content before writing tags. • Use native elements, labels, headings, and useful link or button text. • Keep styling and behavior separate unless the question asks for them.

💡 Simple Example

<header><h1>School News</h1></header><nav aria-label="Main"><a href="/">Home</a></nav><main><article><h2>Science Fair</h2><p>The fair begins Friday.</p></article></main><footer><p>School website</p></footer>

⚡ Quick Revision

Start with semantic, accessible HTML and keep the structure simple.