Tutorial For HTML Text Boxes

When you want visitors to your Web site to sign up for something, log in or answer a question, you have to have a text box that they can type in. HTML text boxes are part of a form, which is created with the "<form>" tag. The text field is part of the "Input" element. You should give each text field a name with the "name" attribute. This allows the server to process the information when it is submitted.

Instructions

    • 1

      Open a blank document in a text editor such as Windows Notepad.

    • 2

      Type "<html>" on the first line to start the HTML document.Type "<html>" on the first line to start the HTML document.

    • 3

      Type "<form>" on a separate line to start the form that will contain the text boxes.

    • 4

      Type "Name: <input type="text" name="name" /><br />" on the next line to create a text box for a visitor's name. You can change all portions of the line, except the "input type="text"" portion and the "name=" portion.

    • 5

      Type "Birth Day: <input type="text" name="birthday" /><br />" on the next line to create a text box for a visitor's date of birth.

    • 6

      Type "</form>" on a separate line to close the form, when you have finished add all of the text boxes that you want.

    • 7

      Type "</body>" on a separate line to close the body of the HTML document, when you have finished adding all visible portions of the webpage.

    • 8

      Type "</html>" on a separate line to close the HTML document.

    • 9

      Save the document.

    • 10

      Open the HTML file in any text box to view the text boxes.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured