ফর্ম সাবমিট বাটনে ক্লিক করার পর ডেটা কোথায় যাবে তা নির্দেশ করতে action অ্যাট্রিবিউট ব্যবহার করা হয়। এখানে ফাইল পাথ বা ইমেইল ঠিকানা দেওয়া যায়।
উদাহরণ
ফর্ম ডেটা পাঠানোর লক্ষ্য নির্ধারণের উদাহরণ:
<!DOCTYPE html> <html> <body> <h2>Student Contact Form</h2> <form action = "mailto:emailid@example.com" method = "post" enctype = "text/plain"> Student Name:<br><input type = "text" name = "sname"> <br> Student Subject:<br><input type = "text" name = "ssubject"><br> <input type = "submit" value = "Send"> </form> </body> </html>