In: Computer Science
Mark is a fitness trainer and uses a webpage that maintains his list of client information and training schedules. Mark's webpage maintenance in charge, Jenny, has been asked to use tables instead of bulleted lists to keep track of all the data in an organized and clear manner.
Jenny has to create a table that contains one header row and three columns, one each for Balance exercise, Strength exercise, and Endurance exercise. Identify the format that Jenny uses to create this type of a table.
a. | <th>
<tr>Balance exercise</tr> <tr>Strength exercise</tr> <tr>Endurance exercise</tr> </th> |
|
b. |
<tr> <th>Balance exercise</tr> <th>Strength exercise</tr> <th>Endurance exercise</tr> </th> |
|
c. |
</tr/> <th>Balance exercise</th> <th>Strength exercise</th> <th>Endurance exercise</th> </tr/> |
|
d. |
<tr> <th>Balance exercise</th> <th>Strength exercise</th> <th>Endurance exercise</th> </tr> |
The figure element may contain an optional _____, which is used to provide a caption for the figure element.
a. |
figure caption element |
|
b. |
image caption element |
|
c. |
embedded figure element |
|
d. |
external figure element |
Identify the Hypertext Markup Language (HTML) element that can be used to incorporate video.
a. |
create |
|
b. |
load |
|
c. |
embed |
|
d. |
insert |
Answer 1) (D) is the correct option.
<tr>
<th>Balance exercise</th>
<th>Strength exercise</th>
<th>Endurance exercise</th>
</tr>
In order to create a table header. we first create a row using <tr> tag and then we include each header column using <th> tag. In option (D) we first created a table row <tr> and then included the columns using <th> which is the correct format to create a header in Html table.
option (A) is wrong because the format is wrong because we are using <th> to create a row and <tr> for the column which is the wrong format.
option (B) is incorrect because the syntax is wrong. As opened the <tr> tag and closing it with the opposite tag </th>.
option (C) is incorrect because the syntax is wrong as there are two slashes in </tr/>. There should be only one slash for the closing tag.
Answer 2) (A) figure caption element
<figcaption> tag is used to provide a caption to a figure in Html. See example beow how <figcaption> is used.
<figure>
<img src="abc.jpg">
<figcaption>Fig.1 - Apple
Image.</figcaption>
</figure>
Answer 3) (C) embed
<embed> tag is used as a container for external resources such as video, images and so on. See example below how to embed a video.
<embed type="video/webm" src="animals.mp4" width="450" height="350">
Please Rate the Question. Thank you!