-
Notifications
You must be signed in to change notification settings - Fork 0
/
fieldset.html
78 lines (77 loc) · 2.37 KB
/
fieldset.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
<!doctype html>
<html>
<head>
<title>Fieldset Fun!</title>
<style>
form {
border: 2px solid;
width: 400px;
padding: 10px;
margin: 10px;
float: left;
}
#sadform {
border-color: red;
}
#sadform h1 {
color: red;
}
#happyform {
border-color: #0000cc;
}
#happyform h1 {
color: #0000cc;
}
div {
background-color: #ffeeee;
}
div div {
background-color: #ffcccc;
}
fieldset {
background-color: #eeeeff;
}
fieldset fieldset {
background-color: #ccccff;
}
</style>
</head>
<body>
<form id="sadform" action="#">
<h1>Sad Form</h1>
<div id="personalInfo">
<p><label for="name">Name: <input id="name" name="name"></label></p>
<p><label for="email">Email: <input id="email" name="email"></label></p>
</div>
<div id="messageDetails">
<p><label for="subject">Subject: <input id="subject" name="subject"></label></p>
<p><label for="message">Message: </label></p>
<p><textarea id="message" name="message"></textarea></p>
<div id="messageFormat">
<p><!-- Message Format: <br> -->
<label for="formatHtml">HTML <input id="formatHtml" name="messageType" type="radio" value="html"></label>
<label for="formatPlain">Plain <input id="formatPlain" name="messageType" type="radio" value="plain"></label></p>
</div>
</div>
</form>
<form id="happyform" action="#">
<h1>Happy Form!</h1>
<fieldset id="personalInfoHappy" form="happyform" disabled="disabled">
<legend>Personal Information</legend>
<p><label for="nameHappy">Name: <input id="nameHappy" name="nameHappy"></label></p>
<p><label for="emailHappy">Email: <input id="emailHappy" name="emailHappy"></label></p>
</fieldset>
<fieldset id="messageDetailsHappy">
<legend>Message Details</legend>
<p><label for="subjectHappy">Subject: <input id="subjectHappy" name="subjectHappy"></label></p>
<p><label for="messageHappy">Message: </label></p>
<p><textarea id="messageHappy" name="messageHappy"></textarea></p>
<fieldset id="messageFormatHappy">
<!-- <legend>Message Format</legend> -->
<label for="formatHtml">HTML <input id="formatHtml" name="messageType" type="radio" value="html"></label>
<label for="formatPlain">Plain <input id="formatPlain" name="messageType" type="radio" value="plain"></label>
</fieldset>
</fieldset>
</form>
</body>
</html>