In: Computer Science
1 Pick the HTML snippet that uses a non-modifiable input named “recipient” with the value “edmonds [email protected]”.
Group of answer choices
a <input type="submit" name="recipient" value="[email protected]">
b <input type="text" name="recipient" value="[email protected]">
c <input type="value" name="recipient" value="[email protected]">
d <input type="hidden" name="recipient" value="[email protected]">
2 Which of the following is the most accurate statement regarding internal hyperlinks?
Group of answer choices
a The “internal” refers to the host machine on which the browser is running
b The “internal” refers to the internal contents of a table
c Internally-linked location names can be assigned to any id in an HTML5 document
d href="page.html&name" is the proper format used to link to an internal location of another page
3 The ______________ element provides input options for a text input element. The browser can use these options to display autocomplete options to the user (hint: this can be used regardless of a user’s previous form inputs).
a value
b datalist
c step
d autocomplete
Solution:
The solutions to the given questions are as shown below.
Question 1)
The answer is option D.
Question 2)
The answer is option C.
Question 3)
The answer is option B.
Explanation:
For Question 1:
Option A)input type = submit is used to create submit button that is used while submitting a form.
Option B)input type = text is used to create text box where user can enter and modify the value.
Option C)input type = value is text box where the value that is assigned to value attribute is present and can be modified
Option D)input type = hidden is used to define a hidden input field and the value cannot be modified by users.
For Question 2:
Option A) An internal link is similar to a hyperlink that is present on a web page to another page like image, document etc... on the same web site or domain.
Option B) As said earlier, the internal refers to the same web page or domain.
Option C) Internally-linked location names can be assigned to any id in an HTML 5 document. Because they refer to the same location on same web page or domain.
Option D)The href is used to store the target or destination path to which the page has to be re directed to.. If we want to link to another website we have to use the complete URL of that page. If we want to refer to any anchor in that page , we use # before anchor name.
For Question 3:
Option A) The value is a element that is used to place a value in the text field.
Option B) Datalist is a element in HTML that is used to display options for the input text element.
Option C) The step is a attribute that specifies the intervals between numbers in the input field
Option D) autocomplete is a attribute that tells whether the auto complete feature should be on or off.when the user enters some text, the browser predicts the value based on previously entered values.