I don\'t understand why input width with type submit less than input with type text. Could you help me with it?
HTML:
The two input
types have their own default styling (margin, padding etc). In order to include these in the width calculation to normalize the set width, use box-sizing:border-box;
Change your CSS to:
input {
width: 200px;
box-sizing:border-box;
}
More on box-sizing from MDN
The box-sizing CSS property is used to alter the default CSS box model used to calculate widths and heights of elements.