Skip to main content

Create a Simple form HTML

Login Form IN HTML:


<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title></title>

</head>

<body>


<form>


<div>

<lable = "UserName">user Name</lable>  <!--------Lable is before any box ---->

<input type="text" id="UserName" > 

</div>

<div>

<lable = "passwordFor">Password</lable> 

<input type = "password" id = "passwordFor" required placeholder = "Enter your password">

</div>

<div><input type = "submit"></div> <!-----------This is submit button----------->

</form>


</body>

</html>


Explanation:

>> for create a form we should use first form tag then will take input from user to validate data in backend thats the reason in form will take input from user by entering this tag = input = "inputType[example- text"] 

In this code lable will gives u name for the box like here u can see on image user name, Password before the box is a lable 


Placeholder = if you want to add something for hint in box then u need to use placeholder tag


Why we are using div ?
Ans: because input is a inline tag and it will gives u form in single line without any break thats the reason I'm using div for all input element because div is a bock element.

this is lable , User name[is a lable]


Comments

Popular posts from this blog

Polity

  1.    सन 1600 में ईस्ट इंडिया कंपनी भारत आई थी जिसका परमिशन ब्रिटिश की महारानी एलीजाबेथ ने दिया था 2.    परमिशन में चार्टर दिया गया था साथ ही मोनोपोली दी गयी थी अलीजाबेत के द्वारा 3.    बिटिश ईष्ट इंडिया कंपनी भारत शिप से आई थी जिस शिप का नाम था रेड ड्रैगन 4.    भारत में आने के बाद उन्होंने पहली फैक्ट्री 1611 मछलीपटनम में बनाई 5.    दूसरी फैक्ट्री 1612 में सूरत में बनाया था 6.    फैक्ट्री नियन्त्र के लिए तीन प्रेसीडेंसी बनायीं गयी जो थी बॉम्बे, बंगाल, मद्रास 7.    बंगाल का राजा था सिराजुदुल्ला और ब्रिटिश रोबर्ट clive युद्ध किया 1757 ऐसा जिसे battle of plasi कहा गया जिसमें रोबर्ट clive की जीत हुयी 8.    कंपनी का rule 1773 से 1858 तक चला था 9.    ताज का शाशन था 1858 से 1947 10.    Regulating act आया था 1773 में 11.    Act of settlement आया था 1781 में 12.    भारत परिषद् अधिनियम आया था 1861, 1892, 1909 13.    Govt of इंडिया act आया था 1858 में...

Stack Data Structure

Question: What is stack ? Ans: Stack is a Linear data structure , Operations in Stack is performed in LIFO order   Stack: Stack is a Last in first out data structure [LIFO MODEL] Stack is Linear data structure in which insertion and deletions are allowed only at the end,called the top of the stack. As a stack is a Linear data structure , we can implement it using Array and LinkedList . bcse we know that Array and linkedlist is a linear data structure so can implement stack on Array and Linkedlist Operations In Stacks:  1)  Push elements onto the stack or push Operation : Kisi cheej ko push karke stack ke sabse upar dal dena Push keh lata hai , Iski time complexity O(1) hoti hai. 2)  Pop elements from the stack or pop Operations : To remove and return the top element from the stack, Stack ke top se element ko nikal lena Pop kehlata hai. Time Complexity O(1). pop will remove last inserted elements from stack Kisi bhi element ko stack se delete krne ko ham PoP bolte ha...

Maurya Vansh CGVYAPAM

आज से 16,000 साल पहले भारत हमारा 16 महाजनपद में बॅंटा हुआ था, महाजनपद ;भारतीय इतिहास में एक महत्वपूर्ण शब्द है। यह संस्कृत शब्द श्महाश् ;बड़ाद्ध और श्जनपदश् ;लोगों का जनसमूहद्ध से बना हैए जिसका अर्थ होता है श्बड़े लोगों का समूहश्। 1.मगध जिसकी राजधानी पाटलीपुत्र रही मौर्य साम्राज्य/मौर्य वंश मगध, उत्तर भारत का भू-भाग है, यह आर्थिक रूप से मजबूत था क्यों कि यहाॅं उसकी भौगोलिक स्थिति अच्छी थी, जमीन उपजाउ थे, नदियाॅं थी, जंगल थे जिस कारण यह मजबूत था। ऽ मगध महाजनपद में सात राजवंशों ने शासन किया था जिसके नाम कुछ इस प्रकार हैं - 1. हर्यक वंश 2. शिशुनाग वंश 3. नंद वंश 4. मौर्य वंश 5. शुंग वंश 6. कर्ण वंश 7. आन्ध्र सातवाहनवंश सिकन्दर / एलेक्जेन्डर ऽ सिकन्दर का सेनापति था सेल्युकस निकेटर तथा निरयाकस ऽ निरयाकस जल सेनापति था ऽ झेलम नदी के किनारे वितस्ता/हाईडेस्पीज का युद्व लड़ा था सिकन्दर और पोरस ने ऽ बेबीलाॅन में 33 साल की उम्र में सिकन्दर की मृत्यु हो जाती है  ऽ झेलम नदी के तट पर कौन अपना पड़ाव डाल के बैठा था - सिकन्दर और पोरस ऽ झेलम नदी के किनारे किसने युद्ध लड़ा था - सिकन्दर और प...