-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML File
More file actions
126 lines (109 loc) · 3.31 KB
/
HTML File
File metadata and controls
126 lines (109 loc) · 3.31 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
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
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>
My Web Page !
</title>
<link rel="stylesheet" type="text/css" href="StyleSheet1.css" />
<style>
body{
background-color: white;
}
h1{
color: black;
text-align: center;
}
p{
font-family: Verdana;
font-size: 20px;
text-align: center;
}
a:link{
color: red;
}
a:visited{
color: green;
}
a:hover{
color: hotpink;
}
a:active{
color: blue;
}
#customers{
font-family: Arial, Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th{
border: 1px solid black;
padding: 8px;
}
#customers tr:hover {background-color: lightgrey;}
#customers th{
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: green;
color: white;
}
</style>
</head>
<body>
<!--Navbar external css-->
<nav>
<ul id="navbar">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!--Main-content section from external css file-->
<section id="main-content">
<h1>Welcome to my homepage!</h1>
<p style="color: darkslategrey;">This is my webpage about my portfolio!</p>
<a href="https://www.deakin.edu.au/" target="blank">
Deakin Website!
</a>
<ul>
<li>
Item One
</li>
<li>
Item Two
</li>
</ul>
<table id="customers">
<tr>
<th>Test</th>
<th>Test</th>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
</table>
</section>
<img src="https://raw.githubusercontent.com/mdn/beginner-html-site/gh-pages/images/firefox-icon.png" width="100" height="100" img align="right"/>
<h2>HTML Form</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname"><br><br>
<input type="submit" value="Submit">
</form>
<footer>
<p>© 2023 My Web Page</p>
</footer>
</body>
</html>