SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

HTML & Semantic MarkupPYQ

Previous Year Questions with detailed solutions

📄
Last updated Sep 2026
Expert Content

HTML — PYQ (Previously Asked / Practice Questions)

Framing note: HTML has no single dominant, proctored certification with a public past-paper archive — unlike, say, AWS or CompTIA exams, there is no "leaked question bank" to draw from honestly. What follows is built from this guide's own Overview/Fundamentals/Intermediate/Advanced/Troubleshooting material, framed as practice questions grounded in real, documented HTML/browser behavior rather than invented "leaked" exam content.


1. (Domain: Document Structure) Why must `<meta charset="UTF-8">` appear within the first 1024 bytes of a document, and what actually breaks if it's placed too late?

Answer: The browser has to start decoding the byte stream into characters before it can fully parse the rest of the document, and it needs to know the encoding to do that correctly. If the charset declaration appears too late (after the browser has already started decoding under an assumed default encoding), any non-ASCII characters parsed before that point can be decoded incorrectly, producing garbled text (mojibake) that a later, correct charset declaration cannot retroactively fix for content already parsed.


2. (Domain: Semantic Elements) Why does a screen reader user's experience differ meaningfully between a page built with `header`/`nav`/`main`/`footer` versus one built entirely from `div`s with matching class names?

Answer: Semantic elements are exposed to the accessibility tree with their actual role — a screen reader can announce "navigation region" or let a user jump directly to "main content," skipping repeated header/nav content on every page load. A