UPDATED VERSION 2025
1.Why is it important to use native HTML form elements when capturing data? -
ANSWER - They demonstrate good usability and are compatible with assistive
software.
2.Which three inputs make use of a valid HTML5 form input type?
Choose three answers. - ANSWER - <input type="email">
<input type="date">
<input type="search">
3.What is the purpose of a <datalist> element? - ANSWER - Provide suggestions
to the user for a form input field.
4.Which is the correct example of the proper use of the <keygen> element in a
form? - ANSWER - Generate encryption keys for secure communication
5.What is the purpose of the <output> element? - ANSWER - Display a value
calculated from data entered by the user
6.Which three HTML techniques can be used to improve form accessibility?
Choose three answers. - ANSWER - Use the autofocus attribute to automatically
place the cursor in the first field of the form, Ensure every input has an
associated <label>, Use <fieldset> and <legend> to group related inputs
7.Which is a consideration for developing an HTML5 form that works correctly
across all browsers? - ANSWER - Rendering differences between browsers may
impact the usability of the form.
8.Why is the POST method safer than the GET method for transmitting data? -
ANSWER - GET shows the values in the URL and may be stored in the browser
history
9.What are two reasons to validate a form before submitting to the server?
Choose two answers. - ANSWER - Reduce demand on server resources which
are shared by many users, Giving the user immediate feedback helps them
resolve issues faster
10.Which two input values are considered valid given the following HTML code?
Choose two answers.
, <input pattern="[A-Z\d]{6}" required> - ANSWER - ABCDEF
ABC123
11.When should the data be validated in a form? - ANSWER - Validate each input
after the user has entered a value and moved on to the next field.
12.What is a characteristic of a web page with responsive design? - ANSWER -
The ability to resize to the screen size
13.What is a characteristic of a web page with responsive design? - ANSWER -
The ability to resize to the screen size
14.Which language provides dynamic content for a web page across all
browsers? - ANSWER - JavaScript
15.Which type of content should use an <aside>? - ANSWER - News feeds
16.Which element should a developer use for a bulleted list? - ANSWER - <ul>
17.What does an HTML5 code validator confirm about code? - ANSWER - It
complies with a standard
A web developer needs to play an audio file endlessly.
The developer writes the following HTML code:
<audio>
<source src = "media/audio.ogg" type="audio/ogg" />
</audio>
18.Which attribute should this developer use? - ANSWER - loop
19.Which attribute is used to display an image inside a <video> element before
the video starts playing? - ANSWER - poster
20.Which style sheet code defines the 18-pixel Arial font for all level two
headers? - ANSWER - h2 {
font-family: Arial; font-size: 18px;
}
Given the following CSS code:
body {
color : white;
}