forked from dscmbm/GSoCPrimer-Assignment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeb Devlopment answers
69 lines (59 loc) · 1.18 KB
/
Web Devlopment answers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Question 1: Create a checkbox input feild in HTML
Code:
<!DOCTYPE html>
<html>
<head>
<title>anskey1 </title>
</head>
<body>
<h1>What is your fav food.</h1>
<label for="myCheckbox">Smosa</label>
<input type="checkbox" id="myCheckbox" name="myCheckbox">
<label for="myCheckbox">Banana</label>
<input type="checkbox" id="myCheckbox" name="myCheckbox">
</body>
</html>
Question 3: How to create a hyperlink that opens in a new tab?
Code:
<!DOCTYPE html>
<html>
<head>
<title>anskey3 </title>
</head>
<body>
<a href="#" target="_blank">Click here to open in a new tab</a>
</body>
</html>
Question 4: Implement a basic form with a text input and a submit button.
Code:
<!DOCTYPE html>
<html>
<head>
<title>anskey 4 </title>
</head>
<body>
<h2>Basic Form sumbition</h2>
<form>
<p>name
<input type="name" id="myCheckbox" name="name">
</p>
<input type="submit">
</form>
</body>
</html>
Question 5:Create an unordered list containing items - coffee, tea, milk
Code:
<!DOCTYPE html>
<html>
<head>
<title>anskey 5 </title>
</head>
<body>
<h2>Create an unordered list containing items - coffee, tea, milk</h2>
<ul>
<li>Coffee</li>
<li>tea</li>
<li>milk</li>
</ul>
</body>
</html>