এলিমেন্টের নাম সেট করতে name অ্যাট্রিবিউটটি ব্যবহার করুন। আপনি নিচের HTML এলিমেন্টের সাথে এটি ব্যবহার করতে পারেন: <button>, <fieldset>, <form>, <iframe>, <input>, <map>, <meta>, <object>, <output>, <param>, <select>, <textarea>।
উদাহরণ
নিচের কোডটি চালিয়ে name অ্যাট্রিবিউটের ব্যবহার দেখুন:
<!DOCTYPE html> <html> <body> Subject: <input type = "text" name = "sub" spellcheck = "true"> <p>Add an incorrect spelling for a word above and see what happens.</p> <p contenteditable = "true" spellcheck = "true">This is an editable conttent, with a spelling mistake. Click to edit.</p> </body> </html>