C777 UNIT 5: FORMS EXAM QUESTIONS
WITH 100% CORRECT ANSWERS L
LATEST VERSION 2025/2026.
Which HTML tag is used to create an HTML form for user input? - ANS <form>
Which attribute specifies whether a form or an input field should allow the browser to predict
the value? - ANS autocomplete
EXAMPLES: <form action="action_page.php" autocomplete="on">
<input type="email" autocomplete="off">
Which attribute specifies that the form input should not be validated when submitted? -
ANS novalidate
EXAMPLE: <form action="/action_page.php" novalidate>
Which attribute defines the action to be performed when the form is submitted? -
ANS action
EXAMPLE: <form action="/action_page.php">
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, Which attribute specifies how form input should be encoded when submitted to the server? -
ANS enctype
EXAMPLE: <form action="/action_page_binary.asp" method="post" enctype="multipart/form-
data">
Which attribute specifies the HTTP method to be used when submitting the form data? -
ANS method
EXAMPLE: <form action="/action_page.php" method="get" target="_blank">
Which attribute specifies where to display the response that is received after submitting the
form? - ANS target
EXAMPLE: <form action="/action_page.php" method="get" target="_blank">
Which attribute refers to pre-defined options contained in a datalist? - ANS list
EXAMPLE:<input list="browsers">
<datalist id="browsers">
</datalist>
Which attributes define the minimum or maximum value for an <input> element? - ANS min
and max
EXAMPLE: <input type="number" min="1" max="5">
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
WITH 100% CORRECT ANSWERS L
LATEST VERSION 2025/2026.
Which HTML tag is used to create an HTML form for user input? - ANS <form>
Which attribute specifies whether a form or an input field should allow the browser to predict
the value? - ANS autocomplete
EXAMPLES: <form action="action_page.php" autocomplete="on">
<input type="email" autocomplete="off">
Which attribute specifies that the form input should not be validated when submitted? -
ANS novalidate
EXAMPLE: <form action="/action_page.php" novalidate>
Which attribute defines the action to be performed when the form is submitted? -
ANS action
EXAMPLE: <form action="/action_page.php">
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
, Which attribute specifies how form input should be encoded when submitted to the server? -
ANS enctype
EXAMPLE: <form action="/action_page_binary.asp" method="post" enctype="multipart/form-
data">
Which attribute specifies the HTTP method to be used when submitting the form data? -
ANS method
EXAMPLE: <form action="/action_page.php" method="get" target="_blank">
Which attribute specifies where to display the response that is received after submitting the
form? - ANS target
EXAMPLE: <form action="/action_page.php" method="get" target="_blank">
Which attribute refers to pre-defined options contained in a datalist? - ANS list
EXAMPLE:<input list="browsers">
<datalist id="browsers">
</datalist>
Which attributes define the minimum or maximum value for an <input> element? - ANS min
and max
EXAMPLE: <input type="number" min="1" max="5">
2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.