उदाहरण
<!DOCTYPE html> <html>
<body>
<form action="">
विषय: <input type="text" name="sub" maxlength="10" size="10"><br>
<input type="submit" value="सबमिट">
</form>
</body>
</html>
size एट्रिब्यूट <input type="text">, <input type="password">, <input type="email">, <select> पर दृश्यमान चौड़ाई कैरेक्टर्स में सेट करता है। अन्य टाइप्स (number, date) पर पिक्सेल्स में काम कर सकता है। CSS width प्राथमिकता पाता है।