XHTML Getting Started Tutorial: Form Tags

XHTML Getting Started Tutorial: Form Tags
<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

Recommend

Linux server quick uninstall and install node environment (easy to get started)

1. Uninstall npm first sudo npm uninstall npm -g ...

What is JavaScript anti-shake and throttling

Table of contents 1. Function debounce 1. What is...

Vue.js application performance optimization analysis + solution

Table of contents 1. Introduction 2. Why do we ne...

Analysis and Solution of ERROR:2002 Reported When MySQL Starts

Preface This article mainly introduces the analys...

HTML meta usage examples

Example Usage Copy code The code is as follows: &l...

MySQL view principles and basic operation examples

This article uses examples to illustrate the prin...

Detailed steps for developing Java payment interface for Alipay

Table of contents first step Step 2 Step 3 Step 4...

Vue integrates Tencent Map to implement API (with DEMO)

Table of contents Writing Background Project Desc...

Use of MySQL DDL statements

Preface The language classification of SQL mainly...

Analysis of the Neglected DOCTYPE Description

doctype is one of them: <!DOCTYPE HTML PUBLIC &...

Native Js implementation of calendar widget

This article example shares the specific code of ...

Paragraph layout and line breaks in HTML web pages

The appearance of a web page depends largely on i...

Problems with installing mysql and mysql.sock under linux

Recently, I encountered many problems when instal...

5 Ways to Clear or Delete Large File Contents in Linux

Sometimes, while working with files in the Linux ...

How to use vs2019 for Linux remote development

Usually, there are two options when we develop Li...