-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathexercise4.html
41 lines (40 loc) · 1.35 KB
/
exercise4.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Exercise #4: Formatting text</title>
<style>
div {
width: 600px;
height: 100px;
border: 1px solid black;
margin-top: 10px;
/* default options */
font-family: Arial;
font-size: 12pt;
}
</style>
</head>
<body>
<form name="form">
<select name="font_family" id="font_family">
<option value="Arial" selected>Arial</option>
<option value="Verdana">Verdana</option>
<option value="Helvetica">Helvetica</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Courier New">Courier New</option>
</select>
<select name="font_size" id="font_size">
<option value="8pt">8pt</option>
<option value="10pt">10pt</option>
<option value="12pt" selected>12pt</option>
<option value="14pt">14pt</option>
<option value="16pt">16pt</option>
</select>
<label>Italic <input type="checkbox" name="font_italic" id="font_italic"></label>
<label>Bold <input type="checkbox" name="font_bold" id="font_bold"></label>
<label>Underline <input type="checkbox" name="font_underline" id="font_underline"></label>
</form>
<div id="text">The quick brown fox jumps over the lazy dog</div>
</body>
</html>