Check out example codes for "input text multiline". It will help you in understanding the concepts better.
Code Example 1
<!-- You need to use a textarea to get multiline handling. -->
<textarea name="Text1" cols="40" rows="5">
Code Example 2
<html>
<head>
<title>Textarea Elements</title>
</head>
<body>
<form>
<label for="multiLineInput"> <!-- Add the label if you want -->
<p>This is an input element that can include new lines:</p>
<textarea rows="5" cols="50" id="multiLineInput">
Code Example 3
<textarea id="w3mission" rows="4" cols="50">
Learn ReactJs, React Native from akashmittal.com