In the above code, the name attribute is missing (bold line)
<!DOCTYPE html> <html> <body> <h2> The name Attribute </h2> <form method="get"> First name:<br> <input type="text" value="Shivansh"><br> Last name:<br> <input type="text" name= "lastname" value="kumar"> <br> <input type="submit" value="Submit"> </form> </body> <html>
In the above code, the name attribute is missing (bold line). What will be the effect of not using the name attribute?
उपरोक्त कोड, में नेम एट्रीब्यूट गायब है (बोल्ड लाइन)। नेम एट्रीब्यूट का उपयोग न करने का क्या प्रभाव होगा?
Detailed Solution & Logic
Value of that input field will not be submitted/उस इनपुट फ़ील्ड की वैल्यू सबमिट नहीं की जाएगी
<html> <body> <h2> The name Attribute </h2> <From method="get"> First name: <br> <input type = "text" name= "Last name" value = "kumar"><br> <input type = "Submit" value = "Submit"> </From> </body> दिये गये HTML कोड में First name का name एट्रीब्यूट न होने के कारण उस इनपुट फील्ड की वैल्यू सबमिट नही की जाएगी।
Similar Practice Questions
makes the text bold.
___makes the text bold. ___टेक्स्ट को बोल्ड बनाता है।
How to add shodow to text in CSS?
How to add shodow to text in CSS? CSS में टेक्स्ट में शैडो कैसे जोड़ें?
option you would adjust to make the colors more vivid?
____option you would adjust to make the colors more vivid? रंगों को और अधिक ज्वलंत...
If you think the value of the variable can change then which keyword is used?
If you think the value of the variable can change then which keyword is used?...
Which of the following directives are used in Angular JS?
Which of the following directives are used in Angular JS? एंगुलरजेएस में निम्नलिखित में से...
By which symbol can multiple declarations be separated? / किस चिह्न द्वारा…
By which symbol can multiple declarations be separated? किस चिह्न द्वारा कई घोषणाओं को अलग...
What is the meaning of letter ‘s’ in ‘https’ Protocol?
What is the meaning of letter ‘s’ in ‘https’ Protocol? ‘https’ प्रोटोकॉल में अक्षर ‘s’...