Home  >  Article  >  Web Front-end  >  XHTML introductory learning tutorial: form tag_HTML/Xhtml_web page production

XHTML introductory learning tutorial: form tag_HTML/Xhtml_web page production

WBOY
WBOYOriginal
2016-05-16 16:45:461146browse

Forms are an important channel for users to submit information. This section will introduce the basic knowledge of forms. Form tag

The form starts with a
tag. User registration for website membership, voting, etc. all require forms to be implemented. 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, Diamondback’s own background is still very good.) in the form
Let’s introduce two common form elements: 1. Text box
Name:

Name:

2. Password box
Name:

Password:


As you can see, both form elements use the 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 tag. For example, text is the text box, and password is the password. You should notice that the tag is also an empty tag. He didn't have a termination 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 selection and check selection. However, since we cannot process the form now, we cannot 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 that forms play in building a website.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn