Ram has designed a portal that fetches the citizens' feedback regarding the voting process in India. The portal allows the end user to choose either 'like' image or 'unlike' image, so that it gets redirected to a page : "thanks.html".
Answer options
A
<form action="thanks.html">
<input type="image" src="like.jpg" alt="submit"/>
<input type="image" src="unlike.jpg" alt="submit"/>
</form>
// we are using input tag & not img bca we want to choose between 'like' and 'unlike' images & not only display them as pics
B
Incorrect HTML/JavaScript syntax
C
Valid syntax but does not satisfy the requirement
D
Unrelated markup or method
Correct answer: <form action="thanks.html"> <input type="image" src="like.jpg" alt="submit"/> <input type="image" src="unlike.jpg" alt="submit"/> </form> // we are using input tag & not img bca we want to choose between 'like' and 'unlike' images & not only display them as pics
Explanation
The correct answer is: <form action="thanks.html"> <input type="image" src="like.jpg" alt="submit"/> <input type="image" ....