-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAF_HTMLReferencePage.php
269 lines (227 loc) · 8.13 KB
/
AF_HTMLReferencePage.php
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!DOCTYPE html>
<!-----------------------------------------------------------------------------------------------------------------
-- AF_HTMLReferencePage.PHP (Original Program)
-- ArcticFox Reference Page
-- LastUpDate: 10/22/21
-- This will be our page for references
------------------------------------------------------------------------------------------------------------------>
<html lang="en">
<head>
<title>ArcticFox HTML Reference Page</title>
<meta charset="UTF-8">
<!-- CSS -->
<style>
img {
display: block;
margin-left: auto;
margin-right: auto;
}
h2 {
color: #dfe7d3;
font-size: 30px;
}
a:link {
color: black;
background-color: transparent;
text-decoration: none;
font-size: 18px;
}
a:visited {
color: black;
background-color: transparent;
text-decoration: none;
font-size: 18px;
}
a:hover {
color: black;
background-color: transparent;
text-decoration: underline;
font-size: 18px;
}
a:active {
color: black;
background-color: transparent;
text-decoration: underline;
font-size: 18px;
}
table {
background-color: green;
color: black;
border-collapse: collapse;
border: 1px;
font-family: Arial;
font-weight: normal;
margin-right: auto;
margin-left: auto;
}
th {
background-color: gray;
font-size: 17px;
font-weight: bold;
}
td {
font-size: 15px;
padding-left: 5px;
padding-right: 5px;
}
h1 {
color: red;
}
tr:nth-child(even) {background-color: silver;}
</style><!-- https://www.w3schools.com/html/html_links_colors.asp-->
<!-- I went online to find out how to change the way links look -->
</head>
<body style="background-color:#00a84c;">
<header style="background-color:#dfe7d3;">
<a href= "Team4.php" ><h1 style="color: #053386;text-align: center; font-size: 38px;"> ArcticFox </h1></a> <!-- Set the ArcticFox Header -->
</header>
<nav>
<?php
include "../ErrorHandler.php";
include "AF_NavBar.php";
?>
</nav>
<main> <!-- Info on the wibsite -->
<h2 style="text-align: center;">HTML Commands</h2>
<hr style="color:#053386;">
<!-- Start of table -->
<table border=1>
<tr> <!-- New Row -->
<th> Item </th> <!-- New bold column -->
<th> Description </th>
</tr>
<tr>
<td> Head Tags </td>
<td> <title> - tag defines the title of the document and is shown in the browser's title bar <br>
<meta charset="utf-8"> <br>
Also make sure <html lang="en"> and <!DOCTYPE html> are before the Head.
</td>
</tr>
<tr>
<td> Structural Elements </td>
<td> <header> <body> <nav> <main> <footer> </td>
</tr>
<tr>
<td> HyperText </td>
<td> The <a> href="example.com"> Example - is how we link a website. <br></td>
</tr>
<tr>
<td> Formatting </td>
<td> The <b> tag is used to bold text. <br>
The <strong> tag is used to define text with strong importance.<br>
The <i> tag is used to make text italicized.<br>
The <em> tag is used to define emphasized text. <br>
The <hr> tag is used to make a break in an HTML page. <br>
</td>
</tr>
<tr>
<td> Headers </td>
<td> The <h1> thru <h6> tags create a used to define HTML headings with <h1> being most
important to <h6>
being least. <br></td>
</tr>
<tr>
<td> Images </td>
<td> <img src="" width="" height=""> <br></td>
</tr>
</table>
<h2 style="text-align: center;">CSS Commands</h2>
<hr style="color:#053386;">
<!-- Start of CSS table -->
<table border=1>
<tr>
<th> Style </th>
<th> Description </th>
</tr>
<tr>
<td> back-ground-color; </td>
<td> </td>
</tr>
<tr>
<td> color </td>
<td> Used to change text color <br></td>
</tr>
<tr>
<td> border-collapse: collapse; </td>
<td> Used to make single line border <br></td>
</tr>
<tr>
<td> border: ?px; </td>
<td> The border weight in pixels <br></td>
</tr>
<tr>
<td> font:family </td>
<td> Change text font <br></td>
</tr>
<tr>
<td> font-size:?px </td>
<td> Font size in pixels <br></td>
</tr>
<tr>
<td> font-weight: </td>
<td> Can be normal or bold <br></td>
</tr>
<tr>
<td> margin-right: auto; margin-left: auto; </td>
<td> Centers table in the browser <br></td>
</tr>
<tr>
<td> padding-left: ?px; padding-right: ?px; </td>
<td> Creates spaces in table cells <br></td>
</tr>
<tr>
<td> In-Line CSS Example </td>
<td> <h2 style="text-align: center;">CSS Commands</h2> <br></td>
</tr>
<tr>
<td> Alternate Color in Table </td>
<td> tr:nth-child(even) {background-color: silver;} <br></td>
</tr>
</table>
<h2 style="text-align: center;">Website Design Best Practices</h2>
<hr style="color:#053386;">
<!-- Start of table -->
<table style= "background-color: white;
color: black;
border-collapse: collapse;
border: 1px;
font-family: Arial;
font-weight: normal;
margin-right: auto;
margin-left: auto;"
border = 1>
<tr> <!-- New Row -->
<td> Optimize your design for mobile devices </td>
</tr>
<tr>
<td> Reinforce actions with familiarity </td>
</tr>
<tr>
<td> Simplify the navigation </td>
</tr>
<tr>
<td> Try shorter paragraphs </td>
</tr>
<tr>
<td> Monitor your page loading speed </td>
</tr>
</table>
<h2 style="text-align: center;"> Links</h2>
<hr style="color:#053386;">
<ul style="background-color:#dfe7d3;">
<li style="text-align: center;"><a href="https://www.w3schools.com/html/html_lists.asp">Lists</a></li>
<li style="text-align: center;"><a href="https://www.w3schools.com/html/html_tables.asp">Tables</a></li>
<li style="text-align: center;"><a href="https://validator.w3.org/">HTML Validator</a></li>
<li style="text-align: center;"><a href="https://www.w3schools.com/html/html5_semantic_elements.asp">Structural Elements</a></li>
</ul>
<hr style="color:#053386;">
<br>
<img src="https://static.vecteezy.com/system/resources/previews/001/194/632/original/snowboarding-png.png" width="320" height="320"></a>
<br> <!--img = cool-->
</main>
<?php
define("FILE_AUTHOR","Antonio Lopez, Luke Pecovic, and Ian Marsh");
INCLUDE ("AF_Footer.php");
?>
</body>
</html>