---
title: "Discussion on \"Can you nest HTML forms?\" | Hashnode"
description: "Discussion on \"Can you nest HTML forms?\". According to this SO post, well... no. What if there was a way to do it anyway ?\nNesting form is not allowed\nIf you try to do this:\n<form action=\"/main\">\n    <input type=\"text\" name=\"main_field\">\n    <form action=\"/sub\">\n        <input type=\"text\" na..."
url: "https://hashnode.com/posts/can-you-nest-html-forms/66599c75a13937e2d8e1dc85"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Can you nest HTML forms?](https://blog.lekoala.be/can-you-nest-html-forms?utm_source=hashnode&utm_medium=feed)

According to this SO post, well... no. What if there was a way to do it anyway ? Nesting form is not allowed If you try to do this: <form action="/main"> <input type="text" name="main\_field"> <form action="/sub"> <input type="text" na...

May 31, 2024 · 2 min read · blog.lekoala.be  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#html](https://hashnode.com/tag/html)
-   [#forms](https://hashnode.com/tag/forms)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Thomas Portelange](https://hashnode.com/@lekoala)

@lekoala · Belgium

  
[View profile](https://hashnode.com/@lekoala)

A PHP/JS Web Developer based in Belgium

A Web Developer based in Belgium, specialized in PHP &amp; JS development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
