4

I'm doing a front-end web development learning a course that employs Bootstrap components.

In the documentation for Bootstrap checkbox and radio buttons, they have the following, unexplained attribute: autocomplete=off, and I can't understand why it is used in the context of checkbox and radio buttons.

Here is a link to the documentation: https://getbootstrap.com/docs/4.0/components/buttons/#checkbox-and-radio-buttons

And here is an example of a code snippet:

<div class="btn-group-toggle" data-toggle="buttons">
  <label class="btn btn-secondary active">
    <input type="checkbox" checked autocomplete="off" /> Checked
  </label>
</div>

It seems autocomplete predicts the value for a form input, but this is a button that has been set to active, so there is nothing to predict. So, it seems to me that autocomplete is irrelevant in the context of buttons, so why to specify it at all?

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.