Questions

HTML questions

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

Add a Favicon to a Static HTML Page

Learn how to add a favicon to static HTML pages, use correct paths and icon formats, and troubleshoot browser caching and local-file issues.

htmlstaticfavicon

Allow Only Numeric Input (0-9) in HTML Input Using jQuery

Learn how to allow only digits 0-9 in an HTML input using jQuery, with examples, validation tips, common mistakes, and best practices.

htmljqueryvalidationnumeric

Apply CSS !important with jQuery .css()

Learn why jQuery .css() cannot set !important and how to use CSSStyleDeclaration.setProperty() to apply inline important styles safely.

htmljavascriptjquerycss

Bootstrap 3 sr-only Class: Screen Reader Accessibility

Learn how Bootstrap 3's sr-only class adds screen-reader labels to icon-only controls without changing the visible page layout.

htmlcsstwitter-bootstraptwitter-bootstrap-3

CSS ::before and ::after on Input Elements

Learn why CSS ::before and ::after usually do not work on input elements, what replaced elements are, and practical alternatives.

htmlcsspseudo-elementcss-content

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.

htmlcsscss-selectors

CSS Absolute Positioning Relative to a Parent Element

Learn how to position absolute child elements relative to a parent with CSS using position: relative, offsets, and practical examples.

htmlcss

CSS Background Opacity Without Fading Text

Learn why CSS opacity affects an entire element and how to create transparent backgrounds while keeping text and child content fully visible.

htmlcssopacity

CSS Space Between Table Rows: border-spacing Explained

Learn how to add vertical space between HTML table rows with CSS border-spacing, border-collapse, and alternatives for reliable table layouts.

htmlcss

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.

htmlcheckbox

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.

htmlcssdateinput

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.

htmljavascriptcss

Center Text Horizontally and Vertically in a Div with CSS

Learn how to center text inside a div horizontally and vertically using modern CSS Flexbox, Grid, and practical alternatives.

htmlcss

Center a DIV on Screen with jQuery and CSS

Learn how to center a div in the browser viewport with CSS and jQuery, including responsive resizing and common layout mistakes.

htmljavascriptjquerycss

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.

htmljavascriptjquerycheckbox

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.

htmlphpcsspdf

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.

html

Disable Links with CSS: pointer-events and Accessible Alternatives

Learn how CSS pointer-events can block mouse clicks on links, why it does not truly disable anchors, and accessible navigation alternatives.

htmlcss

Display HTML Styled Text in an Android TextView

Learn how to render supported HTML formatting in an Android TextView using HtmlCompat, including examples, limits, and safe practices.

htmlandroidxml-parsingtextview

Embedding SVG with img, object, and embed in HTML

Learn when to use img, object, or embed for SVG files, including MIME types, fallbacks, accessibility, and practical HTML examples.

htmlsvgvector-graphics

Page 1 of 8 - 141 questions

PreviousNext