-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1de3e80
commit 1c9a37c
Showing
15 changed files
with
643 additions
and
670 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
### :camel: HTML examples | ||
--- | ||
|
||
#### Task1: Create the below form using HTML | ||
|
||
 | ||
|
||
``` | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page Title</title> | ||
</head> | ||
<body> | ||
<h2>Welcome To GFG</h2> | ||
<form> | ||
<p> | ||
<label>Username : <input type="text" /></label> | ||
</p> | ||
<p> | ||
<label>Password : <input type="password" /></label> | ||
</p> | ||
<p> | ||
<button type="submit">Submit</button> | ||
</p> | ||
</form> | ||
</body> | ||
``` | ||
|
||
#### Task2: Create the below form using HTML | ||
|
||
 | ||
|
||
``` | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page Title</title> | ||
</head> | ||
<body> | ||
<h2>Select your gender</h2> | ||
<form> | ||
<label>Male<input type="radio" name="gender" value="male" /></label> | ||
<label>Female<input type="radio" name="gender" value="female" /></label> | ||
</form> | ||
</body> | ||
</html> | ||
``` | ||
|
||
#### Task3: Create the below form using HTML | ||
|
||
 | ||
|
||
``` | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page Title</title> | ||
</head> | ||
<body> | ||
<h2>Choose Language</h2> | ||
<form> | ||
<ul style="list-style-type:none;"> | ||
<li><input type="checkbox" name="language" value="hindi" />Hindi</li> | ||
<li><input type="checkbox" name="language" value="english" />English</li> | ||
<li><input type="checkbox" name="language" value="sanskrite" />Sanskrit</li> | ||
</ul> | ||
</form> | ||
</body> | ||
</html> | ||
``` | ||
|
||
#### Task4: Create the below form using HTML | ||
|
||
 | ||
``` | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page Title</title> | ||
</head> | ||
<body> | ||
<h2>Select Your Nationality</h2> | ||
<form> | ||
<select name="language"> | ||
<option value="indian">Indian</option> | ||
<option value="nepali">Nepali</option> | ||
<option value="others">Others</option> | ||
</select> | ||
</form> | ||
</body> | ||
</html> | ||
``` | ||
|
||
#### Task5: Create the below form using HTML | ||
|
||
 | ||
|
||
``` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>GfG</title> | ||
</head> | ||
<body> | ||
<form> | ||
<fieldset> | ||
<legend>Personal Details</legend> | ||
<p> | ||
<label> | ||
Salutation | ||
<br /> | ||
<select name="salutation"> | ||
<option>--None--</option> | ||
<option>Mr.</option> | ||
<option>Ms.</option> | ||
<option>Mrs.</option> | ||
<option>Dr.</option> | ||
<option>Prof.</option> | ||
</select> | ||
</label> | ||
</p> | ||
<p> | ||
<label>First name: <input name="firstName" /></label> | ||
</p> | ||
<p> | ||
<label>Last name: <input name="lastName" /></label> | ||
</p> | ||
<p> | ||
Gender : | ||
<label><input type="radio" name="gender" value="male" /> Male</label> | ||
<label><input type="radio" name="gender" value="female" /> Female</label> | ||
</p> | ||
<p> | ||
<label>Email:<input type="email" name="email" /></label> | ||
</p> | ||
<p> | ||
<label>Date of Birth:<input type="date" name="birthDate"></label> | ||
</p> | ||
<p> | ||
<label> | ||
Address : | ||
<br /> | ||
<textarea name="address" cols="30" rows="3"></textarea> | ||
</label> | ||
</p> | ||
<p> | ||
<button type="submit">Submit</button> | ||
</p> | ||
</fieldset> | ||
</form> | ||
</body> | ||
</html> | ||
``` |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.