HTML Form: Creating a text box

This entry is part 2 of 10 in the series HTML Form

We start by creating a very simple text box.

<input type='text' name='name'>

Say you need to ask for the name of the user.

You can create a textbox form as below.

<!DOCTYPE html>
<head lang='en'>     
    <meta charset='UTF-8'>


Name: <input type='text' name='name'>

Text Box
Series Navigation<< HTML Form: Creating a basic form
HTML Form: Width of the text box >>

Leave a comment

Leave a Reply