Can we use more than one form elements in HTML/CSS?

Can we use more than one form elements in HTML/CSS?
0.0 0

#1

Im really curious if we can. For example if i write

 < p>Write down blabla</p >
<form action=''/blabla''>
blablabla
blabla
bla
</form>
< p>Write down second blablah</ p>
< form action= ''/blabla'' >
blabla
bla
</ form>

Is it ok to use more than one Form element?


#2

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Absolutely. I recommend giving them a unique name or id (i.e. id=“form1” and id=“form2”) to differentiate between the two forms.


#3

Ok thank you, but does it matter what i write in ID? Or i can type what ever words i want?


#4

HTML 5 valid syntax for id attributes is at least one character and may not contain any space characters.