Which code correctly creates a contact form in Shopify? 📝
### Explanation
The correct way to create forms in Shopify uses the `{% form %}` tag:
```liquid
{% form 'contact' %}
{% endform %}
```
Key points:
- Automatically adds required hidden fields
- Adds proper form attributes
- Sets correct form action
- Adds proper character encoding
What Shopify automatically adds:
```html
```
Common form types:
- 'contact'
- 'create_customer'
- 'customer_login'
- 'recover_customer_password'
- 'cart'
Reference: [Shopify Liquid form tag](https://shopify.dev/docs/api/liquid/tags/form)
Answer Options:
- ```html
<form action="/contact" method="post">
<input type="text" name="contact[email]">
<button type="submit">Send</button>
</form>
```
- ```liquid
{% form 'contact' %}
<input type="text" name="contact[email]">
<button type="submit">Send</button>
{% endform %}
```
- ```liquid
{{ form 'contact' }}
<input type="text" name="contact[email]">
<button type="submit">Send</button>
{{ endform }}
```
- ```liquid
{% contact_form %}
<input type="text" name="contact[email]">
<button type="submit">Send</button>
{% endcontact_form %}
```