1.

Which attribute is used to input to prevent user input?(a) readonly(b) .sr-only(c) disabled(d) .has-feedbackThe question was asked during an interview.This is a very interesting question from Responsive Overview in division Advance HTML of HTML

Answer»

The correct option is (a) readonly

Explanation: A button is disabled by .disabled CLASS. We can ADD readonly ATTRIBUTE to an input to prevent user input. .sr-only class is applied on non-visible labels, disabled attribute is added to disabled an input FIELD.



Discussion

No Comment Found

Related InterviewSolutions