Questions
HTML questions
Choose a question page, learn the concept, then test your understanding with a quiz.
How to Select Elements by Name in jQuery
Learn how to select elements by name in jQuery using attribute selectors, with examples, mistakes to avoid, and practical use cases.
How to Select an Element with Multiple Classes in jQuery
Learn how to select elements with multiple classes in jQuery using combined class selectors, examples, mistakes, and real use cases.
How to Set Table Cell Padding and Spacing in CSS
Learn how to replace HTML table cellpadding and cellspacing with modern CSS using padding and border-spacing.
How to Set a Default Selected Option in an HTML Select Element
Learn how to set the default selected option in an HTML select element using selected, option values, and JavaScript.
How to Store JavaScript Objects in localStorage and sessionStorage
Learn why localStorage stores strings only and how to safely save and retrieve JavaScript objects using JSON.stringify and JSON.parse.
How to Style a Select Dropdown with CSS Only
Learn what CSS can and cannot do when styling HTML select dropdowns, including browser limits, practical techniques, and fallbacks.
How to Validate an Email Address in JavaScript
Learn how to validate an email address in JavaScript using simple checks, regex, and browser tools with beginner-friendly examples.
How to Vertically Align Text in a div with CSS
Learn how vertical alignment works in CSS, why `vertical-align` does not center normal div text, and the best ways to center content.
How to Vertically Center Text with CSS
Learn how to vertically center text with CSS using flexbox, line-height, and other practical techniques for modern layouts.
How to Vertically Center a div in CSS Across Browsers
Learn practical CSS techniques to vertically center a div, including older browser limitations and reliable modern solutions.
JavaScript DOM Ready: Vanilla JS Equivalent of jQuery $(document).ready()
Learn the vanilla JavaScript equivalent of jQuery $(document).ready() using DOMContentLoaded, load, and safe cross-browser patterns.
JavaScript Links: Should You Use href="#" or javascript:void(0)?
Learn why href="#" and javascript:void(0) are usually poor choices, and what to use instead for JavaScript actions.
Local Storage vs Cookies in JavaScript: Key Differences and When to Use Each
Learn the real differences between cookies and localStorage in JavaScript, including performance, security, size, and best use cases.
Matching Opening HTML Tags with Regex in JavaScript
Learn how to match opening HTML tags while excluding self-closing tags, and understand the limits of regex for HTML parsing.
Up and Down Triangle Characters in HTML: Unicode Symbols and Entities
Learn how to display up and down triangle symbols in HTML using Unicode and entities, with examples, use cases, and common mistakes.
What X-UA-Compatible Does in HTML for Internet Explorer
Learn what the X-UA-Compatible meta tag does, when IE=edge matters, and why modern HTML pages usually should not use it.
What multipart/form-data Means in HTML Forms
Learn what enctype="multipart/form-data" means in HTML forms, when to use it, and how it affects file uploads and form submission.
Where to Put Script Tags in HTML: Head vs Body and Best Practices
Learn where to place script tags in HTML, when to use head or body, and how defer and async affect page loading and execution.
Why Browsers Treat Invalid HTML Colors Like “chucknorris” as a Color
Learn why invalid HTML color values like “chucknorris” still produce colors, and how browsers parse legacy color attributes.
Why Self-Closing Script Tags Don’t Work in HTML and XHTML
Learn why self-closing script tags fail in HTML, how browsers parse script elements, and what changes in XHTML parsing.
Page 3 of 3 - 60 questions