forked from GardenSnake/GardenSnake.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtmlguide.html
More file actions
122 lines (105 loc) · 2.6 KB
/
htmlguide.html
File metadata and controls
122 lines (105 loc) · 2.6 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>This is a visual reference for various HTML elements. Add new HTML elements you learned to this page.</p>
<hr>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p>Paragraph</p>
<ol> Ordered list
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ol>
<ul>Unordered List
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
Input fields:
<input type="text" placeholder="Text Input">
<input type="password" placeholder="Password input">
<br><br>
Reset form:
<form>
<input type="text" value="Default Value">
<input type="reset" value="Reset">
</form>
<br><br>
<table style="width:100%">Table:
<tr>
<th>Table header1</th>
<th>Table header2</th>
<th>Table header3</th>
</tr>
<tr>
<td>table cell</td>
<td>table cell</td>
<td>table cell</td>
</tr>
<tr>
<td>table cell</td>
<td>table cell</td>
<td>table cell</td>
</tr>
<tr>
<td>table cell</td>
<td>table cell</td>
<td>table cell</td>
</tr>
</table>
<br>
Image:<br>
<img src="https://imgs.xkcd.com/comics/11th_grade.png" alt="alternate text if image is not able to be displayed" title="title attribute of image">
<br>
Check Box:
<form style="border: solid 1px">
<input type="checkbox" checked="checked">Choice A (already checked)<br>
<input type="checkbox">Choice B<br>
<input type="checkbox">Choice C<br>
<input type="submit" value="Submit Button">
</form>
Radio Buttons:
<form style="border: solid 1px">
<input type="radio" name="radio" value="option1" checked> Option 1<br>
<input type="radio" name="radio" value="option2"> Option 2<br>
<input type="radio" name="radio" value="option3"> Option 3<br>
<input type="submit" value="Submit Button">
</form>
<fieldset>
<legend>Fieldset</legend>
First name:<br>
<input type="text" name="firstname" value="first name here">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</fieldset>
<fieldset>
<legend>Select Menu</legend>
<label for="select">Select</label>
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
</fieldset>
<br>
iframe: display a web page within a web page.
<iframe width="80%" height="200" src="https://www.tutorialspoint.com/"></iframe>
<br>
</body>
</html>