Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html
css
communitycreator

What is the HTML action attribute?

Behzad Ahmad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Overview

The action attribute in HTMLHyperText Markup Language is used to specify where to send the data of a form.

Syntax


<form action="URL">

Parameters

  • URL: This is used to define the link or URL where we want our data to be sent once the form is submitted.

Example

The HTML code provided below demonstrates how to use the action attribute:

Explanation

We make a form. When the form is submitted, the data is sent to the signup page on the server.

RELATED TAGS

html
css
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring