-
Notifications
You must be signed in to change notification settings - Fork 8
/
html5.html
119 lines (117 loc) · 4.07 KB
/
html5.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>INT222 - Assignment #2 - html5.html</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/mycss.css" />
</head>
<body>
<nav>
<ul>
<li><a href="../">Zenit Account</a></li>
<li><a href="index.html">Home</a></li>
<li><a href="gallery.html">Photo Gallery</a></li>
<li><a href="video.html">Video</a></li>
<li><a href="audio.html">Audio</a></li>
<li><a class="current" href="html5.html">HTML5</a></li>
<li><a href="forms.html">Forms</a></li>
<li><a href="other.html">Other</a></li>
<li><a href="css">CSS Used</a></li>
</ul>
</nav>
<h1>HTML5 New features</h1>
<div class="content">
<section>
<form method="post" name="html5" action="index.html">
<h2>How to focus on an entry</h2>
<article>
<p>
<input name="entry01" id="entry01" autofocus="autofocus" /> <mark>autofocus</mark><br />
<input type="text" name="entry01" id="entry01" autofocus="autofocus" /> autofocus
</p>
</article>
<hr />
<h2>How to set a placeholder</h2>
<article>
<p>
<input name="entry02" id="entry02" placeholder="placeholder" /> <mark>placeholder</mark><br />
<input type="text" name="entry02" id="entry02" placeholder="placeholder" /> placeholder
</p>
</article>
<hr />
<h2>How to set required for an entry</h2>
<article>
<p>
<input name="entry03" id="entry03" required /> <mark>required</mark>
<input type="submit" value="Test" /><br />
<input type="text" name="entry03" id="entry03" required /> required
</p>
</article>
<hr />
<h2>How to create a list/datalist</h2>
<article>
<p>
<input list="list" name="entry04" id="entry04" /> <mark>list</mark><br />
<datalist id="list">
<option value="option01" />
<option value="option02" />
<option value="option03" />
<option value="option04" />
<option value="option05" />
</datalist>
<input list="list" name="entry04" id="entry04" /> list<br />
<datalist id="list"><br />
<option value="option01" /><br />
<option value="option02" /><br />
<option value="option03" /><br />
<option value="option04" /><br />
<option value="option05" /><br />
</datalist>
</p>
</article>
<hr />
<h2>How to ensure a valid email address format</h2>
<article>
<p>
<input type="email" name="entry05" id="entry05" value="cmarkieta*myseneca.ca"/> <mark>email</mark>
<input type="submit" value="Test" /><br />
<input type="email" name="entry05" id="entry05" /> email
</p>
</article>
<hr />
<h2>How to ensure a valid url format</h2>
<article>
<p>
<input type="url" name="entry06" id="entry06" value="https://"/> <mark>url</mark>
<input type="submit" value="Test" /><br />
<input type="url" name="entry06" id="entry06" /> url
</p>
</article>
<hr />
</form>
</section>
<aside>
<h2>HTML5 New attribute/value</h2>
<ul>
<li><a href="#entry01">autofocus="autofocus"</a></li>
<li><a href="#entry02">placeholder="placeholder"</a></li>
<li><a href="#entry03">required</a></li>
<li><a href="#entry04">list="list"</a></li>
<li><a href="#entry05">type="email"</a></li>
<li><a href="#entry06">type="url"</a></li>
</ul>
</aside>
</div>
<footer>
<section>
<script type="text/javascript">
//<![CDATA[
var dt=new Date(document.lastModified); // Get document last modified date
document.write('<p>This page was last updated on '+dt.toLocaleString()) + '</p>';
//]]>
</script>
</section>
</footer>
</body>
</html>