Elements of the Form in HTML
This article introduces all the elements of the form used in HTML.
Element
The most important element when creating a form in HTML is .
This element can display multiple ways, depending on the type
attribute
If the type attribute is omitted, the data fill field will leave the default type as text (text). All input data types for the form will be mentioned in the following article.
Element
Elementused to define a drop-down list.
Chó
Mèo
Lợn
Gà
The drop down list to choose from
Element Define a selected option. By default the first option in the list will be selected, if you want to define another option, use the
selected
attribute
Mèo
Visible value
Use the size
attribute to determine the number of visible values.
Chó
Mèo
Lợn
Gà
See 3 values in all 4 values
Allow to select multiple options
Use multiple
attributes to allow users to select more than one value. Hold down Ctrl (on Windows) or Cmd (on Mac) to choose other options.
Chó
Mèo
Lợn
Gà
Element
You should read it
May be interested
- Attributes in HTMLproperties are used to add information to elements in html.
- Semantic Element in HTML5in html, each semantic element describes the structural significance of that element to browsers and developers / developers.
- Introduction to HTMLa few basic things to know about html before starting to learn this language.
- Layout in HTMLwebsites often display content in the form of columns (like in newspapers or magazines).
- Input types of input elements in HTMLthe article introduces input data types for input elements.
- Computer code element in HTMLelements used to display computer code data in the browser
- Form - Form in CSSforms - forms are an integral part of any kind of website. let's see how to build the display interface part of a basic form.
- 5 steps to learn a dynamic HTML web component profilehtml is an important part of websites we still use every day. however, not everyone can understand how a website is structured.
- Basic examples of HTMLin the previous html lesson, you know which tools to use to write html code, how to save and open html files. this article will give some basic examples of html text.
- eQuiz - Multiple choice test on HTML knowledgein this test, we will proceed with the small html test, there will be 30 questions in total with no response time, you must choose the answer in each question. can continue to the next sentence.