Questions
HTML questions
Choose a question page, learn the concept, then test your understanding with a quiz.
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.
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 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.
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.
How to Align Content to the Bottom of a Div in CSS
Learn how to bottom-align content inside a fixed-height div using CSS with simple examples, flexbox, positioning, and common mistakes.
How to Auto-Resize an Image While Maintaining Aspect Ratio in CSS
Learn how to resize images to fit a container while keeping aspect ratio using CSS. Includes examples, mistakes, and a mini project.
How to Change Placeholder Text Color in CSS
Learn how to style HTML input placeholder text with CSS using ::placeholder and browser-specific selectors.
How to Change an Element's Class with JavaScript
Learn how to change, add, remove, and toggle HTML element classes with JavaScript using events like click.
How to Change the href Attribute with jQuery
Learn how to change a hyperlink's href attribute using jQuery with clear examples, common mistakes, and practical use cases.
How to Create a Placeholder for a Select Box in HTML and CSS
Learn how to create a placeholder-like option for a select box using HTML, CSS, and JavaScript, with beginner-friendly examples.
How to Create a div Element in jQuery
Learn how to create a div element in jQuery, add content and attributes, and insert it into the page with clear examples.
Page 1 of 3 - 60 questions