Using HTML Inputs
Learn how to create simple forms in HTML to take inputs.
We'll cover the following
Part of the attraction of using technologies like D3.js is that it expands the scope of what is possible in a web page. At the same time, there are many different options for displaying content on a page and plenty of ways of interacting with it.
Some of the most basic of capabilities has been the use of HTML entities that allow the entry of data on a page. This can take a range of different forms (pun intended), and the <input>
tag is one of the most basic.
What is an HTML input?
An HTML input is an element in HTML that allows a web page to input data. There are a range of different input types (with varying degrees of compatibility with browsers), and they are typically utilised inside a <form>
element.
For example, the following code allows a web page to place two fields on a web page so that a user can enter their first and last names in separate boxes:
Get hands-on with 1400+ tech skills courses.