π Detailed Explanation
HTML (HyperText Markup Language) is a core web technology invented by Tim Berners-Lee in 1991. It defines the skeleton of a web page and structures content such as text, images, links, and forms. HTML5, in use today, was standardized by the W3C in 2014 and provides rich features such as multimedia, canvas, and local storage.
HTML is made up of tags. Tags take forms such as <p>, <h1>, and <div>, with content placed between the opening and closing tags. Attributes give tags additional information; id, class, src, and href are typical examples. The browser parses HTML to build a DOM (Document Object Model) tree.
Semantic HTML is a core principle of modern web development. Semantic tags such as <header>, <nav>, <main>, <article>, <aside>, and <footer> clearly convey the meaning of content. Screen readers can understand the document structure, which improves accessibility, and search engines can understand the content, which also benefits SEO.
Important features added in HTML5 include <video> and <audio> (plugin-free media), <canvas> (2D graphics), <svg> (vector graphics), new form types (email, date, range), and data-* custom attributes. Combined with the Web Components standard, you can also create reusable custom elements.
π£οΈ Examples of Practical Conversations
π¨βπ» Junior developer
"I built the whole layout with div tags. Do I really need semantic tags? It looks the same anyway."
π©βπ» Senior developer
"It looks the same visually, but the meaning is different. Screen reader users understand the page structure through header, nav, and main. Search engines also give more weight to content inside article. It affects accessibility audits and SEO scores, too."
π¨βπΌ Technical interviewer
"What is the most important thing to consider for accessibility in HTML?"
π¨βπ» Candidate
"First, provide meaningful alt text for images. Second, always associate a label with form elements. Third, use semantic tags and the heading hierarchy (h1-h6) correctly. Fourth, manage tabindex and focus so that every interaction is possible with the keyboard alone."
Take a mock interview on this topic β WIA SOOM AI Interview Β· Start for free