number
			input要素のtype属性にnumberを指定すると、数値入力欄になる。
			
			
			
			
			
			
			
			
			
			
			
			
				
				サンプルコード
<input type="number" name="sampleName">
				
				
					
					最大値と最小値を指定
<input type="number" min="-10" max="10" name="sampleName">
				
				
				
				
					
					入力可能な数値の間隔を指定
<input type="number" step="5" name="sampleName">
				
				
				
				
					
					初期入力値を指定
<input type="number" value="5" name="sampleName">
				
				
				
			
			
			
				
				サンプル
				
				
				
				
					
					シンプルな数値入力フォーム
				
					
					
						HTMLソースコード
<form action="sample-input-type.php" method="post" target="_blank">
	<p>
		<label>
			数値入力欄:
			<input type="number" name="sampleName">
		</label>
	</p>
	<p>
		<input type="submit">
	</p>
</form>
					
					
				
					
					
				
				
			
				
			
				
				
					
					特定範囲の数値入力
				
					
					
						HTMLソースコード
<form action="sample-input-type.php" method="post" target="_blank">
	<p>
		<label>
			数値入力欄:
			<input type="number" name="sampleName" value="0" min="-10" max="10">
		</label>
	</p>
	<p>
		<input type="submit">
	</p>
</form>
					
					
				
					
					
				
				
			
				
			
				
				
					
					特定の間隔の数値入力欄
				
					
					
						HTMLソースコード
<form action="sample-input-type.php" method="post" target="_blank">
	<p>
		<label>
			数値入力欄:
			<input type="number" name="sampleName" value="50" step="5">
		</label>
	</p>
	<p>
		<input type="submit">
	</p>
</form>