html
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
<!DOCTYPE html>
<html>
<head>
<title>Form Comtrols</title>
</head>
<body>
<!--inspired by book entitled Learning Web Design 4th Edition by Jennifer Niederst Robbins-->
<article>
<h3>TEXT ENTRY CONTROLS</h3>
<form>
<p>***Single-line text entry***</p>
<label>Username:<input type="text" name="username" id="username" value="Username" maxlength="50"></label>
</form>
<form>
<p>***Multiple-line text entry***</p>
<p><label>Sololearn: Learn to Code for Free<br>
<em>Tell us why you love Sololearn.</em><br>
<textarea name="comment" rows="10" cols="30">Sololearn is totally awesome!</textarea>
</label></p>
</form>
<form>
<p>***Multiple-line text entry using placeholder***</p>
<p><label>Sololearn: Learn to Code for Free<br>
<em>Tell us why you love Sololearn.</em><br>
<textarea name="comment" placeholder="50 words or less"></textarea>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
body {
}
h3 {color: DarkSlateGray;}
article {background-color: Beige;
border-style: solid ;
border-color: #333;
text-align: center;
form {text-align: left;}
Enter to Rename, Shift+Enter to Preview
js
js
1
alert("Thank you for investing your time! Keep going, guys. Never give up. Sololearn rocks!");
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run