<br />Forms are an important channel for users to submit information. This section will introduce the basics of forms. Form Tag <form> A form starts with a <form> tag. Users need forms to register as website members, vote, etc. Of course, XHTML alone cannot handle these forms. If you want to handle these forms, you need to use some web backend technologies like PHP and ASP. (By the way, the background of Xiaocai Niao is still very green.) Below we introduce two common form elements: 1. Text box <form> Name: <inputtype="text" name="user"/><br/></form> Name: 2. Password box <form> Name: <inputtype="password"name="pass"/><br/></form> password: As you can see, both form elements use the <input> tag, but the content filled in the password box is invisible. What determines their different types is the attribute value of the "type" attribute of the <input> tag. For example, text is a text box, and password is a password. You should have noticed that the <imput> tag is also an empty tag. He didn’t terminate the tag. We must remember to add a "/" at the end to comply with XHTML requirements. There are many commonly used form elements, such as single choice and multiple choice, but since we can't process the form now, we can't understand the meaning of the form. So I won’t introduce it here. If you continue to learn backend technology in the future, you will naturally understand the role of form in website building. |
<<: MySQL obtains the current date and time function example detailed explanation
>>: Details on overriding prototype methods in JavaScript instance objects
1. Uninstall npm first sudo npm uninstall npm -g ...
Table of contents 1. Function debounce 1. What is...
Table of contents 1. Introduction 2. Why do we ne...
Preface This article mainly introduces the analys...
Example Usage Copy code The code is as follows: &l...
This article uses examples to illustrate the prin...
Table of contents first step Step 2 Step 3 Step 4...
Table of contents Writing Background Project Desc...
Preface The language classification of SQL mainly...
doctype is one of them: <!DOCTYPE HTML PUBLIC &...
This article example shares the specific code of ...
The appearance of a web page depends largely on i...
Recently, I encountered many problems when instal...
Sometimes, while working with files in the Linux ...
Usually, there are two options when we develop Li...