Questions
HTML questions
Choose a question page, learn the concept, then test your understanding with a quiz.
CSS :not() Selector for Excluding a Class or Attribute
Learn how to use the CSS :not() selector to target elements that do not have a specific class or attribute, with examples and common mistakes.
Can HTML Checkboxes Be Readonly? Understanding readonly vs disabled in HTML Forms
Learn why HTML checkboxes do not support readonly, how disabled differs, and practical ways to prevent changes while still submitting values.
Can You Change `input type="date"` Format in HTML?
Learn how HTML date inputs format values, why you cannot force DD-MM-YYYY, and how to display custom date formats safely.
Can You Style Half a Character in CSS? Text Effects with CSS and JavaScript
Learn how to style half of a character using CSS and JavaScript, including overlay techniques for dynamic text effects.
Check If a Checkbox Is Checked with jQuery
Learn how to check whether a checkbox is checked in jQuery using the correct selector, with examples, mistakes, and practical patterns.
Convert HTML and CSS to PDF in PHP: Options, Limits, and Practical Approaches
Learn how HTML-to-PDF conversion works in PHP, why CSS support varies, and how to choose a practical approach for Linux web servers.
Difference Between <section> and <div> in HTML
Learn the difference between HTML <section> and <div>, when to use each, and how semantic HTML improves structure and accessibility.
Get Screen, Page, and Browser Window Size in JavaScript
Learn how to get screen size, viewport size, page size, and scroll position in JavaScript across major browsers.
Get the Selected Radio Button Value with jQuery
Learn how to find which radio button is selected in jQuery and get its value with simple examples and common mistakes.
HTML <button> vs <input type="button">: Differences, Use Cases, and Best Choice
Learn the difference between HTML <button> and <input type="button">, when to use each, browser behavior, forms, and common mistakes.
HTML Character Encoding: `<meta charset="utf-8">` vs `<meta http-equiv="Content-Type">`
Learn when to use `<meta charset="utf-8">` versus `<meta http-equiv="Content-Type">` in HTML5 and why UTF-8 matters.
HTML id Attribute Rules: Valid Values and Best Practices
Learn which HTML id values are valid, how browsers treat them, and the best practices for naming ids in modern HTML and CSS.
HTML role Attribute Explained: Accessibility, Semantics, and SEO
Learn what the HTML role attribute does, when to use it, how it affects accessibility, and whether it helps semantics or SEO.
HTML5 Number Input for Floating-Point Values
Learn how HTML5 input type="number" handles floating-point values, why browsers show integer steppers, and how to allow decimals correctly.
HTML5 Void Elements: Should You Use <br>, <br/>, or <br />?
Learn the correct HTML5 syntax for void elements like <br> and when <br/> or <br /> matters in HTML vs XHTML.
Hide an Element When Clicking Outside in jQuery
Learn how to hide a div when clicking outside it in jQuery without breaking links or button clicks inside the element.
How In-Browser Screenshots Work with HTML5 Canvas and JavaScript
Learn how browsers create in-page screenshot tools with JavaScript and Canvas, including limits, selection overlays, and practical alternatives.
How `vertical-align` Works in CSS for Text Next to Images
Learn why `vertical-align: middle` may not work next to an image in CSS, how inline alignment works, and practical fixes for text-image layout.
How to Add a Class to an HTML Element with JavaScript
Learn how to add a CSS class to an HTML element in JavaScript using classList.add, with examples, mistakes, and real use cases.
How to Align Checkbox and Label Text Consistently Across Browsers with CSS
Learn reliable ways to align checkbox inputs and labels across browsers using simple HTML and CSS techniques.
Page 1 of 5 - 100 questions