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
- 35 tools, scripts and plugins to build HTML Tablethere are many ways to visualize data, ie you can design a beautiful infographics or create interactive charts. it all depends on your data and how you want to present them.
- 12 stunning HTML5 templates that web designers should not ignorethere are many free html5 templates online and choose one of them that can make it difficult for many people. therefore, the article scoured the internet to bring you stunning html5 templates for business, personal, portfolio profiles, and all other types of websites.
- 5 interesting HTML and CSS features to look forward to in 2018join tipsmake.com to learn about 5 interesting html and css features to look forward to in 2018!
- Introduction to HTMLa few basic things to know about html before starting to learn this language.
- HTML editing toolto learn html, it is best to use simple editing tools like notepad (on pc) or textedit (on mac).
- 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.