-
Notifications
You must be signed in to change notification settings - Fork 0
/
practice.html
153 lines (121 loc) · 2.77 KB
/
practice.html
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<title> Practice HTML </title>
<head>
<link rel="stylesheet" type="text/css" href="practice.css"/>
<style>
table,th,td
{
border:1px solid black;
border-collapse:collapse;
}
/*
#test
{
color: blue;
}
#test2
{
color: red;
}
*/
</style>
<script type="text/javascript">
alert("Hello I am Bob");
</script>
</head>
<body>
<h1> My First Heading </h1>
<p> My First Paragraph </p>
<hr> <!--the hr element is used to separate content -->
<div id="test">
<p>I'm studying from <a href="http://www.w3schools.com" target="_blank">w3schools.</a></p>
<p>What does <q>the element do</q> to this.</p>
<div>Hey I'm a div tag</div>
<!--div tags are block level elements. It forces a new line before & after and it occupies the full with of its parent element -->
<span>Hey I'm a span tag, check my width!</span>
<!--span tags are in-line elements. It doesn't force a new line before & after and it only occupies enough space that it need -->
<hr/>
</div>
<div id="test2">
<p><b>Hi I'm an ordered list. I'm purposely starting on number 20</b></p>
<ol start="20">
<li> Item 1</li>
<li> Item 1</li>
<li> Item 1</li>
</ol>
<dl>
<dt>
<b>Cookies n cream Milkshake</b>
</dt>
<dd>
- oreos and ice cream combination shake
</dd>
<dt>
<b>Very vanilla</b>
</dt>
<dd>
- cake batter ice cream shake
</dd>
</dl>
<table style="width:300px">
<tr>
<th>First Name</th>
<th>Last Name</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>Mike</td>
<td>James</td>
</tr>
</table>
<br/>
<hr/>
</div>
<form>
Username:<input type="text" name="firstname" />
Password:<input type="password" name="pass" />
</form>
<br/>
<b>Talk about yourself</b>
<form>
<textarea name="comment">Enter text here...</textarea>
</form?>
<br/>
<br/>
<b>Which action figure do you own?</b>
<br/>
<form>
<input type="checkbox" name="superhero" value="batman" /> I own Batman!
<br>
<input type="checkbox" name="superhero" value="superman" /> I own Superman!
<br>
<input type="checkbox" name="superhero" value="noman" /> I own Noman!
</form>
<br/>
<b>What is your favorite car?</b>
<form>
<input type="radio" name="car" value="Lexus" /> Lexus
<input type="radio" name="car" value="bmw" /> BMW
<input type="radio" name="car" value="mercedes" /> Mercedes
</form>
<br/>
<hr/>
<b>What is your favorite dessert?</b>
<form>
<select>
<option value="milkshake">Milkshake </option>
<option value="icecream">Ice Cream </option>
<option value="cake">Cake </option>
</select>
</form>
<br/>
<form>
<input type="submit" valud="Submit" />
</form>
<iframe src="http://www.islamqa.com"></iframe>
</body>
</html>