# \<input>

🔰 [HTML](..) ⟩ [Elements]() ⟩

{% hint style="danger" %}
Normally, **display: block** elements **automatically** fill the **available width**, but **\<input>**  is a bit different. Its **width** is determined by the **size** attribute, which indicates **roughly the number of characters** it should contain without scrolling.

&#x20;This attribute reverts to a **default value** if not specified. You can force a specific width with the CSS **width** property. :point\_right: CSS in Depth, p.135.
{% endhint %}
