Questions

HTML questions

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

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

Equal Height Columns in CSS: Make Navigation Match Content Height

Learn how to make a navigation column match a dynamic content column's height using modern CSS Flexbox, without fixed parent heights.

htmlcss

Export HTML Canvas to PNG, JPEG, GIF, and PDF with JavaScript

Learn how to export HTML canvas drawings as PNG or JPEG using toBlob and toDataURL, handle CORS safely, and create PDFs in JavaScript.

htmljavascriptcanvasexport

Fix CSS MIME Type text/html Errors in Gulp and BrowserSync

Learn why browsers reject CSS served as text/html, how to diagnose the response, and fix paths, server roots, and Gulp BrowserSync setup.

htmlcssgulpmime-types

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.

htmljavascriptjquerylayout

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.

htmljavascriptjqueryjquery-selectors

HTML <b>, <strong>, <i>, and <em>: Semantic Differences

Learn the semantic differences between HTML b, strong, i, and em tags, including accessibility, default styling, and when to use each correctly.

htmlxhtml

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.

htmlbuttoncompatibility

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.

htmlhtml-metadoctype

HTML Entity Encoding in Input Values with JavaScript and jQuery

Learn why browsers decode HTML entities in input attributes and how to safely encode strings for HTML or display literal entity text.

htmljavascriptjqueryescaping

HTML Fragment Links: Using id vs name Anchors

Learn how HTML fragment links work and why id is the modern, semantic choice for linking directly to a section of a web page.

htmlhyperlinkfragment-identifier

HTML Label and Input Nesting: Explicit vs Implicit Labels

Learn when to nest an HTML input inside a label, when to use for and id, and how to build accessible form controls correctly.

htmlsemantics

HTML Script async and defer Attributes Explained

Learn how HTML script async and defer affect downloading, execution order, parsing, dependencies, and page performance in modern browsers.

htmljavascript

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

HTML id vs name Attributes: Differences in Forms

Learn the difference between HTML id and name attributes, how forms submit values, and when using both attributes is necessary.

htmlattributes

HTML img vs CSS background-image: When to Use Each

Learn when to use HTML img versus CSS background-image, including accessibility, semantics, responsive images, performance, and layout examples.

htmlcssimagebackground-image

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.

htmloptimizationattributesseo

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.

htmlinputfloating-point

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.

html

Page 2 of 8 - 152 questions