Right Answer: To print the grid in Photoshop, go to the "View" menu, select "Show," and then choose "Grid." After that, go to "File," select "Print," and ensure the grid is visible in the print preview before printing.
Right Answer: A contextual selector in CSS is a selector that targets elements based on their relationship to other elements in the document hierarchy. For example, `div p` selects all `<p>` elements that are inside a `<div>`.
Right Answer: Document Style Semantics and Specification Language (DSSSL) is a language used for specifying the style and formatting of documents written in SGML (Standard Generalized Markup Language) and XML. It allows for the separation of content from presentation, enabling the transformation and rendering of documents in various formats.
Right Answer: Event bubbling is a JavaScript event propagation method where an event starts from the target element and bubbles up to its ancestors in the DOM hierarchy. Event delegation is a technique that involves attaching a single event listener to a parent element to manage events for multiple child elements, leveraging event bubbling to handle events efficiently.
Right Answer: Semantic HTML elements are tags that clearly describe their meaning in a human- and machine-readable way, such as `<header>`, `<article>`, `<footer>`, and `<section>`. They are important because they improve accessibility, enhance SEO, and make the structure of the web page clearer for developers and browsers.
Right Answer: `var` is function-scoped or globally-scoped and can be re-declared and updated. `let` is block-scoped, can be updated but not re-declared in the same scope. `const` is also block-scoped, cannot be updated or re-declared, and must be initialized at the time of declaration.
Right Answer: HTML5 is the latest version of HTML, which includes new features such as native support for audio and video, new semantic elements (like `<article>`, `<section>`, and `<header>`), improved parsing rules, and better support for web applications with APIs like local storage and canvas. HTML, on the other hand, refers to earlier versions that lack these enhancements.
Right Answer: A Single Page Application (SPA) is a web application that loads a single HTML page and dynamically updates the content as the user interacts with the app, without requiring a full page reload.