DSSSB TGT CS Front End Design & Web Tools: Quick Revision Notes & Topic-Wise PYQ Quiz

DSSSB TGT CS: Front-End Design & Web Tools Revision Kit

Exam-oriented notes followed by 5 authentic Previous Year Questions (PYQs) for each section.

1. HTML Core Architecture, Tables & Elements

Key Exam Facts & Definitions:

  • Document Type: HTML5 uses <!DOCTYPE html> (case-insensitive, simplified from HTML 4.01 DTD variants like Strict, Transitional, and Frameset).
  • Void/Empty Elements: Do not require a closing tag: <br>, <hr>, <img>, <input>, <meta>, <link>, <wbr>.
  • Structural Semantics: <pre> preserves whitespace and line breaks verbatim in monospace; <em> conveys vocal emphasis, while <i> is purely stylistic.
  • Table Grouping: <thead>, <tbody>, and <tfoot> group row blocks. Cells span using colspan (horizontally across columns) and rowspan (vertically down rows). <colgroup> and <col> format entire columns simultaneously.
  • Special Utilities: <fieldset> groups form elements visually, while <legend> provides its caption. <bdo dir="rtl"> overrides bidirectional reading order. <base href="..."> establishes document-wide default relative URL resolution.
Practice Check: 5 Core HTML PYQs
📅 DSSSB TGT CS 01-Aug-2021 (Shift 2)🔄 Asked 5 times
Q1. What is the standard document type declaration for HTML5?
📅 DSSSB TGT CS 2014 & 2021🔄 Asked 3 times
Q2. Which HTML element is a void/empty tag that does NOT have a closing tag?
📅 DSSSB TGT CS 07-Aug-2021 (Shift 3)🔄 Asked 4 times
Q3. In HTML tables, which attribute merges two or more adjacent cells horizontally?
📅 DSSSB TGT CS 25-June-2023 (Shift 1)🔄 Asked 4 times
Q4. Which tag provides a caption/title for a <fieldset> grouping element?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 1)🔄 Asked 2 times
Q5. Which scheme creates an HTML hyperlink that initiates a direct phone call?

2. HTML5 Semantics, Form Controls & Web Storage

Key Exam Facts & Definitions:

  • Semantic Containers: <article> specifies self-contained, distributable syndication content; <aside> denotes related sidebar/callout content; <figure> encapsulates media paired with <figcaption>.
  • Dynamic Graphics: <canvas> is pixel-based and manipulated via JavaScript procedural APIs (canvas.getContext('2d'), origin at top-left 0,0). SVG is XML-based vector graphics, scaling infinitely without fidelity loss.
  • Interactive Controls: <datalist> provides suggested auto-complete items linked to an input via the list attribute. <progress> displays task progression, whereas <meter> gauges scalar quantities within fixed boundaries.
  • Form Validation: Native attributes include required, pattern (regex check), and novalidate (bypasses browser client-side constraint checks).
  • Client Storage APIs: localStorage persists with no expiry date (~5MB per origin). sessionStorage wipes data upon tab closure. IndexedDB is a transactional, asynchronous NoSQL client database.
Practice Check: 5 HTML5 & Storage PYQs
📅 DSSSB TGT CS 01-Aug-2021 (Shift 2)🔄 Asked 4 times
Q1. Which HTML5 element renders dynamic, scriptable 2D bitmapped graphics on the fly?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 1)🔄 Asked 4 times
Q2. What is the key functional difference between sessionStorage and localStorage?
📅 DSSSB TGT CS 24-June-2023 (Shift 2)🔄 Asked 3 times
Q3. Which HTML5 semantic tag defines an independent, self-contained piece of syndication-ready content?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 3)🔄 Asked 2 times
Q4. Which HTML5 element binds predefined autocomplete options to an <input> element?
📅 DSSSB PGT CS 2021🔄 Asked 3 times
Q5. Which browser background script acts as a programmable network proxy for offline Progressive Web Apps (PWAs)?

3. CSS Selectors, Cascade Specificity & Combinators

Key Exam Facts & Definitions:

  • Specificity Weight Hierarchy: !important > Inline Styles (1,0,0,0) > IDs (0,1,0,0) > Classes, Attributes, and Pseudo-classes (0,0,1,0) > Elements and Pseudo-elements (0,0,0,1). The universal selector (*) has (0,0,0,0).
  • Combinator Symbols:
    • A > B : Direct child combinator (immediate children only). • A + B : Adjacent sibling combinator (immediately following sibling). • A ~ B : General sibling combinator (any following sibling). • A B : Descendant selector (any nested child).
  • Attribute Selectors: ^= starts with; $= ends with; *= contains substring; ~= matches space-separated word; |= matches exact or hyphen-prefixed word.
  • Modern Pseudo-classes: :is() adopts the specificity of its most specific argument; :where() always contributes zero (0) specificity; :has() acts as a parent relational selector.
Practice Check: 5 CSS Selectors PYQs
📅 DSSSB TGT CS 01-Aug-2021 (Shift 1)🔄 Asked 4 times
Q1. Which CSS selector carries the highest individual specificity weight?
📅 DSSSB TGT CS 07-Aug-2021 (Shift 2)🔄 Asked 3 times
Q2. Which symbol represents the direct child combinator in CSS?
📅 DSSSB TGT CS 25-June-2023 (Shift 2)🔄 Asked 2 times
Q3. Which modern CSS pseudo-class always contributes exactly (0, 0, 0) specificity?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 3)🔄 Asked 2 times
Q4. What does the selector "h1 + p" match in an HTML document?
📅 DSSSB TGT CS 25-June-2023 (Shift 3)🔄 Asked 2 times
Q5. Which attribute selector matches elements whose attribute starts with a specific prefix?

4. CSS Box Model, Positioning, Flexbox & Grid

Key Exam Facts & Definitions:

  • Box Model: Layers from inside-out: Content > Padding > Border > Margin. box-sizing: border-box includes padding and border within the total element width, preventing layout breakage.
  • Positioning Types:
    • static : Default in-flow document positioning. • relative : Offset relative to its normal position without removing its footprint. • absolute : Positioned relative to its nearest non-static positioned ancestor. • fixed : Positioned relative to the viewport; unaffected by scrolling. • sticky : Behaves relatively until a specified scroll offset is met, then acts fixed.
  • Flexbox: justify-content aligns items along the main axis; align-items aligns items along the cross axis. flex shorthand: flex-grow, flex-shrink, flex-basis (defaults: 0 1 auto).
  • CSS Grid: Two-dimensional layout system. Uses the fractional unit (fr). gap defines gutters. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) creates responsive column tracks without requiring media queries.
Practice Check: 5 Box Model & Layout PYQs
📅 DSSSB TGT CS 01-Aug-2021 (Shift 1)🔄 Asked 4 times
Q1. Which CSS property includes padding and borders inside the declared width and height?
📅 DSSSB TGT CS 07-Aug-2021 (Shift 3)🔄 Asked 5 times
Q2. What is the default value of the CSS "position" property?
📅 DSSSB TGT CS 25-June-2023 (Shift 2)🔄 Asked 3 times
Q3. Which property distributes space along the main axis in a Flexbox container?
📅 DSSSB TGT CS 01-Aug-2021 (Shift 3)🔄 Asked 4 times
Q4. What unit represents a fraction of the remaining free space in a CSS Grid?
📅 DSSSB PGT CS 2021🔄 Asked 2 times
Q5. What three properties are configured by the "flex: 1 1 auto;" shorthand?

5. CSS3 Animations, 2D/3D Transforms & Responsive Design

Key Exam Facts & Definitions:

  • Animations: Keyframe steps are declared with the @keyframes at-rule. animation-fill-mode: forwards retains final computed styles after animation completion. animation-direction: alternate runs alternating playback directions.
  • Transforms: Manipulated via rotate(), scale(), translate(x, y), and skew(). 3D perspective is established using the perspective property and transform-style: preserve-3d.
  • Responsive Viewport: Requires <meta name="viewport" content="width=device-width, initial-scale=1.0"> in the <head> to prevent automatic mobile viewport down-scaling.
  • Modern Media Queries: min-width establishes mobile-first breakpoints. Features like (prefers-color-scheme: dark) query system theme preferences, and (prefers-reduced-motion: reduce) detect accessibility settings.
Practice Check: 5 CSS3 & Animation PYQs
📅 DSSSB TGT CS 01-Aug-2021 (Shift 2)🔄 Asked 3 times
Q1. Which CSS @-rule is used to declare intermediate animation keyframes?
📅 DSSSB TGT CS 07-Aug-2021 (Shift 1)🔄 Asked 5 times
Q2. Which meta tag is essential for responsive CSS media queries to work on mobile browsers?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 1)🔄 Asked 2 times
Q3. Which property retains the final frame styles after an animation finishes playing?
📅 DSSSB TGT CS 25-June-2023 (Shift 3)🔄 Asked 4 times
Q4. Which media query matches screen viewports that are 768px wide or wider?
📅 DSSSB PGT CS 2021🔄 Asked 3 times
Q5. Which dynamic CSS function combines length calculations across different units?

6. JavaScript ES6 Core, Scope, Types & Operators

Key Exam Facts & Definitions:

  • Scoping & Hoisting: var is function-scoped, hoisted, and initialized to undefined. let and const are block-scoped and reside in the Temporal Dead Zone (TDZ) prior to declaration.
  • Type Quirks: typeof null === 'object' (legacy JS bug); typeof NaN === 'number'; NaN === NaN evaluates to false (use Number.isNaN() instead).
  • Coercion Rules: '5' + 3 === '53' (string concatenation dominates with +); '5' - 3 === 2 (subtraction coerces string to number).
  • Arrow Functions & Context: Arrow functions (() => {}) do not bind their own this; they retain lexical this from their enclosing scope.
  • Modern ES6+ Operators: Nullish Coalescing (??) returns the right-hand value only for null or undefined. Optional Chaining (?.) short-circuits gracefully without throwing reference errors on nullish properties.
Practice Check: 5 JavaScript Core PYQs
📅 DSSSB TGT CS 07-Aug-2021 (Shift 3)🔄 Asked 5 times
Q1. What is the return value of "typeof null" in JavaScript?
📅 DSSSB TGT CS 25-June-2023 (Shift 1)🔄 Asked 3 times
Q2. What is the result of evaluating ('5' - 3) in JavaScript?
📅 DSSSB TGT CS 01-Aug-2021 (Shift 1)🔄 Asked 5 times
Q3. How does the "this" keyword behave inside an ES6 Arrow Function?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 2)🔄 Asked 2 times
Q4. What values trigger fallback execution in the Nullish Coalescing operator (??)?
📅 DSSSB TGT CS 08-Aug-2021 (Shift 2)🔄 Asked 3 times
Q5. Why does (0.1 + 0.2 === 0.3) evaluate to false in JavaScript?

7. DOM Manipulation, Event Propagation & Asynchronous JS

Key Exam Facts & Definitions:

  • Event Propagation Pipeline: 1. Capturing Phase (window down to target) > 2. Target Phase > 3. Bubbling Phase (target up to window). event.stopPropagation() halts bubbling; event.preventDefault() prevents native browser default behavior.
  • Event Delegation: Placing a single listener on an ancestor element to manage events from dynamically created children using event.target.
  • DOM Selection Performance: getElementById and getElementsByClassName return live node collections. querySelectorAll returns a static snapshot NodeList. DocumentFragment allows batching DOM updates in memory without triggering browser reflows.
  • Lifecycle Events: DOMContentLoaded fires when the HTML parser completes the DOM tree (without waiting for stylesheets/images). window.onload fires after all subresources finish loading.
  • Async JavaScript: Promises exist in three mutually exclusive states: pending, fulfilled, and rejected. async/await provides syntactic sugar over Promises, where await pauses execution inside an async function until a Promise settles.
Practice Check: 5 DOM & Async JS PYQs
📅 DSSSB TGT CS 25-June-2023 (Shift 2)🔄 Asked 3 times
Q1. In DOM event propagation, which phase executes first?
📅 DSSSB TGT CS 07-Aug-2021 (Shift 1)🔄 Asked 3 times
Q2. What is the explicit purpose of event.preventDefault()?
📅 DSSSB TGT CS 01-Aug-2021 (Shift 3)🔄 Asked 4 times
Q3. What is the benefit of "Event Delegation" in client-side programming?
📅 DSSSB TGT CS 07-Aug-2021 (Shift 3)🔄 Asked 3 times
Q4. Which event fires as soon as the DOM tree finishes parsing, without waiting for external stylesheets/images?
📅 DSSSB PGT CS 2021🔄 Asked 3 times
Q5. Which state is NOT a valid status of an ECMAScript Promise?

8. Web Architecture, HTTP Protocols & Security

Key Exam Facts & Definitions:

  • Status Codes: 200 OK; 301 Moved Permanently; 304 Not Modified (serves from local cache); 401 Unauthorized (missing authentication); 403 Forbidden; 404 Not Found; 500 Internal Server Error.
  • Protocol Enhancements: HTTP/2 enables multiplexing requests over a single TCP connection. HTTP/3 replaces TCP with QUIC over UDP to eliminate head-of-line blocking.
  • Security Controls:
    • SOP (Same-Origin Policy) : Restricts scripts on one origin from accessing resources on another origin (Protocol + Domain + Port). • CORS : Uses HTTP headers to grant cross-origin access; complex calls initiate an OPTIONS preflight check. • Cookies : HttpOnly blocks client script access (mitigates XSS); SameSite mitigates CSRF. • CSP (Content-Security-Policy) : Restricts allowed resource origins to block malicious script injection.
  • Script Loading Attributes: async downloads asynchronously and executes immediately when ready. defer downloads in parallel and executes in document order only after HTML parsing completes.
Practice Check: 5 Web Architecture & Tools PYQs
📅 DSSSB TGT CS 01-Aug-2021 (Shift 2)🔄 Asked 4 times
Q1. Which HTTP status code indicates that a requested resource was permanently moved to a new URI?
📅 DSSSB PGT CS 2021🔄 Asked 4 times
Q2. Which HTTP header defends against Cross-Site Scripting (XSS) by whitelisting trusted content sources?
📅 DSSSB TGT CS 25-June-2023 (Shift 2)🔄 Asked 4 times
Q3. Which cookie flag prevents client-side JavaScript (document.cookie) from accessing the cookie?
📅 DSSSB TGT CS 08-Aug-2021 (Shift 3)🔄 Asked 4 times
Q4. How does the "defer" attribute on an external <script> tag execute?
📅 DSSSB TGT CS 12-Sept-2025 (Shift 3)🔄 Asked 2 times
Q5. What underlying transport protocol does HTTP/3 utilize instead of standard TCP?
💚

Enjoyed this post?

Help us create more content by sharing it with a friend!

Share on WhatsApp

Post a Comment

Please do note create link post in comment section

Previous Post Next Post