Questions

HTML questions

Choose a question page, learn the concept, then test your understanding with a quiz.

How to Parse and Process HTML/XML in PHP

Learn how to parse HTML and XML in PHP, extract data safely, and choose between DOMDocument, SimpleXML, and XPath.

htmlphpxmlxml-parsing

How to Remove Bullets from an Unordered List in CSS

Learn how to remove bullets from an unordered list using CSS, with simple examples, common mistakes, and practical usage tips.

htmlcss

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 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 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

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

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

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

Page 2 of 2 - 31 questions