Choose the best description of what the
Think about what happens when you fill out a survey or login and press submit.
The
Look at the code options below. Which one correctly creates a text input field inside a form?
<form action="/submit"> <!-- input goes here --> </form>
The type attribute defines the kind of input. The correct value for a single line text box is 'text'.
The correct syntax for a text input is <input type="text" name="username">. Other options use invalid or unknown attribute values.
Given the following HTML code, what will the user see in the browser?
<form> <label for="email">Email:</label> <input id="email" type="email" name="email" required> <button type="submit">Send</button> </form>
Labels connect to inputs by the 'for' attribute matching the input's 'id'. The 'required' attribute means the input must be filled before submitting.
The code shows a label linked to an email input box that must be filled. The button labeled 'Send' submits the form.
Choose the CSS selector that selects every <input> element inside a <form> with class 'signup'.
Think about how to select inputs that are inside a form with a specific class.
The selector 'form.signup input' means: select all input elements inside any form element that has the class 'signup'.
Choose the form snippet that best supports screen readers by correctly associating labels with inputs.
Labels should be explicitly linked to inputs using 'for' and 'id' attributes for best accessibility.
Option D uses a label with 'for' matching the input's 'id', which is the recommended way to associate labels and inputs for screen readers.