Why might a developer set the id attribute of an input element?

<html>
<head><style>body {min-height: 300px;} input { font-size: 16px; } textarea { font-size: 16px; } </style></head>
<body>
  <input type="text" placeholder="Your email" id="email">
</body>
</html>]]>
To get user input using JavaScriptTo create space for multiple lines of input

By setting an ID, developers can get user input after the user types something in.