A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/twbs/bootlint/wiki/E042 below:

E042 · twbs/bootlint Wiki · GitHub

.form-control can only be used on certain HTML elements, and there are further restrictions about which types of <input> elements it can be used on.

.form-control cannot be used on non-textual <input>s, such as those whose type is: file, checkbox, radio, range, button

When used on an <input> element, .form-control can only be used on <input>s whose type is text-like, namely:

Contrastingly, .form-control cannot be used on non-textual <input>s, namely:

.form-control should only be used on <input>s, <textarea>s, and <select>s.

The .form-control class cannot be used on arbitrary HTML elements. It can only be used on <input>s, <textarea>s, and <select>s.

Wrong:

<button class="form-control">None of</button>
<div class="form-control">these</div>
<span class="form-control">make any</span>
<a class="form-control">sense!</a>

Right:

<input type="text" class="form-control" value="Text input" />
<textarea class="form-control">Text area</textarea>
<select class="form-control">
  <option>Option 1</option>
  <option>Option 2</option>
  ...
</select>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4