Consider the following HTML snippet:
<form action="/submit" method="post">
<label for="firstName">First Name:</label>
<input type="text" id="firstName" name="firstName">
<input type="submit" value="Submit">
</form>What are the roles of the 'action', 'method', and 'type' attributes in this form?