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.

htmljavascriptjquerydom

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.

htmljquerycssjquery-selectors

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.

htmlcsshtml-tablealignment

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.

htmlhtml-select

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.

htmljavascriptlocal-storage

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.

htmlcsscomboboxcross-browser

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.

htmljavascriptregexemail-validation

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.

htmlcssvertical-alignment

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.

htmlcssvertical-alignment

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.

htmlcssalignmentvertical-alignment

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.

htmljavascriptjquery

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.

htmljavascriptperformanceoptimization

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.

htmlcookiesbrowserlocal-storage

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.

htmlregexxhtml

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.

htmlcssunicodeicons

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.

htmlinternet-explorerbrowserx-ua-compatible

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.

htmlhttp-headersmultipartform-data

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.

htmljavascript

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.

htmlbrowserbackground-color

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.

htmljavascriptinternet-explorerxhtml

Page 3 of 3 - 60 questions