EN
HTML - text input
3 points
In this article, we would like to show you how to create text input element in HTML.
Quick solution:
xxxxxxxxxx
1
<input type="text" name="input-name" value="Initial value..." />
or just:
xxxxxxxxxx
1
<input name="input-name" value="Initial value..." />
In this section, we use label
to wrap input
for better SEO and user experience (it means the input
is described by the Field name:
).
xxxxxxxxxx
1
2
<html>
3
<body>
4
<label>
5
<span>Field name:</span>
6
<input type="text" name="input-name" value="Some text ..." />
7
</label>
8
</body>
9
</html>