What attribute is used along with the .form-control class to make a textbox non editable?

Question image

Understand the Problem

The question is asking which attribute can be used with the .form-control class to make a textbox non-editable. It is likely related to HTML or web development.

Answer

readonly

The attribute used along with the .form-control class to make a textbox non-editable is 'readonly'.

Answer for screen readers

The attribute used along with the .form-control class to make a textbox non-editable is 'readonly'.

More Information

The 'readonly' attribute makes an input non-editable but still allows users to focus and copy the value.

Tips

A common mistake is confusing 'readonly' with 'disabled'. 'Disabled' prevents interaction altogether, while 'readonly' still allows for text selection.

AI-generated content may contain errors. Please verify critical information

Thank you for voting!
Use Quizgecko on...
Browser
Browser