-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimplistic-html5-java
More file actions
46 lines (46 loc) · 1.68 KB
/
simplistic-html5-java
File metadata and controls
46 lines (46 loc) · 1.68 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
<!-- Listing 1-4 A simple semantic page with JavaScript fallback for IE 7 and IE 8 (simplistic-html5-java.html) -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Semantic tags with JavaScript support for IE 7 and 8</title>
<meta charset=utf-8>
<style>
body { width:500px; margin:auto;
}
header, nav, article, footer { display:block;
}
header { width:500px; background-color:#FF9966; text-align:center; margin:auto;
}
nav { float:left; width:25%; background-color: #FF9966; margin-bottom:10px;
}
article { float:right; width:70%; background-color:#FF9966; margin-bottom:10px;
}
footer { clear:both; background-color:#FF9966; text-align:center;
}
</style>
<!--[if lte IE 8]>
<script src="html5.js"></script>
<![endif]-->
</head>
<body>
<header>
<h1>header goes here</h1>
</header>
<nav>
<ul>
<li><a href="page-one.html">Page One</a></li>
<li><a href="page-two.html">Page Two</a></li>
<li><a href="index.html">Home page</a></li>
</ul>
</nav>
<article>
<b>Article</b><br>Are you illiterate? Write today for free course.
</article>
<article>
<b>Another Article</b><br>Stock up for Christmas. Limited to one per family
</article>
<footer>
<strong>Footer.</strong> Perhaps for a copyright statement
</footer>
</body>
</html>