AND SOLUTIONS RATED A+
✔✔Which HTML input type allows for mailto: address entry? - ✔✔url
✔✔Which form attribute limits the number of characters for an input field? -
✔✔maxlength
✔✔Which element allows a developer to add a caption for a created group of items? -
✔✔<legend>
✔✔Which attribute value presents form data to a server for processing? - ✔✔submit
✔✔Which global attribute should a developer use to bind a label element to an input
element? - ✔✔for
✔✔Given the following HTML:
What color would you like to use?
<select autofocus>
<option value = "red">Red</option>
<option value = "blue">Blue</option>
<option value = "green">Green</option>
<option value = "pink">Pink</option>
</select>
What happens when the page loads? - ✔✔The select element in the form takes focus.
✔✔Which code segment creates input text that has its value checked against a regular
expression? - ✔✔<input type="text" name="name" pattern="[a-zA-Z]">
✔✔What is a limitation of user input validation? - ✔✔Validation detects only incorrect
formatting and missing information.
✔✔Given the following markup:
<input id="password" name="password" type="password" class="password"
pattern=".{8,12}" required>
What does the markup do? - ✔✔It allows a user to enter a password between 8 and 12
characters long.
, ✔✔Which HTML pattern attribute validates an IPv4 address? - ✔✔<input type="text"
pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}">
✔✔Given the following code:
<form name="Form" action="/action.php" method="post">
Name: <input type="text" name="name">
<input type="submit" value="Submit">
</form>
What should a developer add or change to ensure that the form is validated when
submitted? - ✔✔The event handler and function should be added to the form tag.
✔✔Which unit of measurement should a developer use when designing mobile
websites to ensure that content fits multiple screen sizes? - ✔✔Percentage point
✔✔What is a characteristic of mobile web design? - ✔✔Easily understood text labels as
links
✔✔Where should a search field be placed on a mobile site? - ✔✔Across the top
✔✔Which development phase helps ensure cross-browser compatibility through coding
standards? - ✔✔Validation
✔✔What should a developer use to test sites for cross-browser compatibility? -
✔✔Emulator
✔✔What is a goal of responsive web design? - ✔✔Dynamic element adjustments
✔✔What is used in code to specify the width of an image in responsive web design? -
✔✔%
✔✔Why is JavaScript considered a scripting language? - ✔✔The code must be
interpreted.
✔✔Which option declares a variable called name and assigns the literal value Student
to it? - ✔✔var name = "Student";
✔✔What is the main purpose of a scripting language in web pages, according to the
W3C? - ✔✔Provides processing power
✔✔What is an advantage of using JavaScript over other programming languages in
web development? - ✔✔Easier to isolate and update errors