HTML5, CSS3 & JavaScript | Verified Accurate Answers
2025/2026
<datalist> - correct answer provides a set of predefined options for an
input field. When users start typing, a dropdown list appears with matching
suggestions.
<keygen> - correct answer was used to generate a public/private key pair
for authentication; deprecated in favor of more secure methods like
webauthn.
<output> - correct answer used to display the result of a calculation or
process, often in conjunction with javascript.
Required - correct answer ensures the field must be filled before
submission.
Placeholder - correct answer displays a short hint describing the expected
value.
Pattern - correct answer specifies a regular expression for input validation.
Min/max - correct answer define numeric or date ranges.
Step - correct answer sets the increment for numeric or range input.
Readonly - correct answer makes the field non-editable.
,Disabled - correct answer disables the field entirely.
Action - correct answer specifies the url to which the form data will be
sent.
Method - correct answer defines the http method used to send form data
(e.g., get or post).
Autocomplete (form) - correct answer enables or disables autocomplete
for all fields within the form.
Autocomplete (input) - correct answer enables or disables autocomplete
for that specific field.
Autocomplete - correct answer provides suggestions based on the
browser's saved data (e.g., previously entered values).
<datalist> - correct answer provides predefined, developer-specified
suggestions.
<button type="submit"> - correct answer submits the form.
<button type="reset"> - correct answer resets form fields to their initial
values.
<button type="button"> - correct answer a generic button that performs no
default action but can be programmed via javascript.
, <label> - correct answer associates a text label with a form control for
better accessibility.
<fieldset> - correct answer groups related form controls and elements
together.
<legend> - correct answer provides a caption or title for a <fieldset>.
Dom - correct answer the document object model (dom) is a programming
interface that represents the structure of an html or xml document. It allows
developers to interact with and manipulate elements, styles, and content of
a web page dynamically using javascript.
Canvas creation - correct answer to create a canvas and draw a line, use
the html <canvas> element and javascript to access the canvas context
and draw with methods like beginpath(), moveto(), lineto(), and stroke().
Getcontext() - correct answer the getcontext() method provides access to
the rendering context of a <canvas> element, which defines what kind of
drawing can be done.
Available contexts for getcontext() - correct answer 2d: for two-
dimensional graphics. Webgl or webgl2: for three-dimensional graphics
using webgl. Bitmaprenderer: for fast pixel-based rendering.
Manifest file - correct answer a manifest file provides metadata about a
web application, including its name, icons, start url, theme colors, and
display mode. It is used primarily in progressive web apps (pwas) to