-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocwdt-mod1-chkpt6-Media.html
More file actions
113 lines (107 loc) · 5.69 KB
/
blocwdt-mod1-chkpt6-Media.html
File metadata and controls
113 lines (107 loc) · 5.69 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
<!--
**_Questions_**
> What is the tag you would use to add an image to a webpage?
A: I would use the `<img>` tag in conjunction with a `src="rel/abs/remote path"` attribute though in the case of a remote file path I would try to avoid hot-linking and get a copy of the image I can control onto my computer. Would also use the `alt=""` attribute because: see below VVVVVVVV
> In your own words, explain what the alt attribute is and why it is important.
A: The alt attribute is a way to provide text information describing the media resource in case it does not load or the user cannot see. The alt text would provide some context to those users about the media on your page so they could still "follow along" in a way, or at least know what they are missing. Alt text is also important from an SEO perspective as missing alt attributes make it harder for people to find your page because the robots won't know what the media is without that alt attribute
> Describe the similarity and differences between the `<video>` and `<audio>` tags.
A: They both have opening and closing tags, unlike `<img>`. They also share very similar attributes and syntax like `<source src="" type"">` being nested inside the parent `<video>` or `<audio>` tags, both provide for fail over media types and alt text. The only real difference is the media types with `<audio>` accepting `type=MP3, Wav, and Ogg`, and `<video>` using `type = MP4, WebM, or Ogg`
-->
<!DOCTYPE html>
<html>
<head>
<title>My First Site</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href='/index.html'>Home</a></li>
<li><a href='/about.html'>About</a></li>
<li><a href='/contact.html'>Contact</a></li>
<li><a href='/prices.html'>Best Prices in Town</a></li>
</ul>
</nav>
</header>
<aside>
<p>This is sidebar text!</p>
<p>This is sidebar text!</p>
</aside>
<section>
<table>
<thead>
<tr>
<th>Photo</th>
<th>Food</th>
<th>Description</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://s3.amazonaws.com/bloc-foo/salad.jpg" alt="Yummy Salad Picture"></td>
<td>Salad</td>
<td>Fresh, delicious Cobb Salad</td>
<td>$7.99</td>
</tr>
<tr>
<td><img src="https://s3.amazonaws.com/bloc-foo/hamburger.jpg" alt="Juicy Burger Picture"></td>
<td>Burger</td>
<td>1/4 lb grass-fed burger with choice of cheese</td>
<td>$6.99</td>
</tr>
<tr>
<td><img src="https://s3.amazonaws.com/bloc-foo/chicken_salad_sandwich.jpg" alt="Chicken Salad Sammy Picture"></td>
<td>Chicken Salad Sandwich</td>
<td>Our world famous chicken salad on a bagel with homemade pickles</td>
<td>$8.99</td>
</tr>
<tr>
<td><img src="https://s3.amazonaws.com/bloc-foo/buffalo_chicken_sandwich.jpg" alt="Spicy Buffalo Chicken Picture"></td>
<td>Buffalo Chicken Sandwich</td>
<td>Spicy fried chicken on a brioche bun</td>
<td>$10.99</td>
</tr>
<tr>
<td><img src="https://s3.amazonaws.com/bloc-foo/fries.jpeg" alt="Hand Cut Fries Picture"></td>
<td>Fries</td>
<td>Hand cut potatoes lightly fried and seasoned</td>
<td>$1.99</td>
</tr>
<tr>
<td><img src="https://s3.amazonaws.com/bloc-foo/soda.jpeg" alt="Thirst Quenching Soda Picture"></td>
<td>Soda</td>
<td>Regular, diet, orange, or root beer</td>
<td>$1.00</td>
</tr>
</tbody>
</table>
</section>
<section>
<form action="/form.php" method="post">
<fieldset>
<legend>Reservation Form</legend>
<label for="firstName" style="text-align:left">First Name</label>
<input type="text" id="firstName" style="float:right"><br>
<label for="lastName" style="text-align:left">Last Name</label>
<input type="text" id="lastName" style="float:right"><br>
<label for="email" style="text-align:left">Email Address </label>
<input type="email" id="email" style="float:right"><br>
<label for="tel" style="text-align:left">Telephone Number </label>
<input type="tel" id="tel" style="float:right"><br>
<select name="restimes" style="float:left">
<option selected disabled>Pick an available time</option>
<option value="1">Tuesday @ 6PM</option>
<option value="2">Tuesday @ 7PM</option>
<option value="3">Wednesday @ 5PM</option>
<option value="4">Wednesday @ 9PM</option>
</select><br>
<textarea col="180" row="25" style="float:right">Additional Comments or Requests Here
</textarea>
<input type="submit" value="Submit">
</fieldset>
</form>
</section>
<footer>This is where any content in the footer would go</footer>
</body>
</html>