Review questions

docx

School

University of the Fraser Valley *

*We aren’t endorsed by this school

Course

145

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

8

Uploaded by GeneralKingfisher3554

Report
Review Questions Multiple Choice 1. Which HTML tag pair is used to specify table headings? a. <td> </td> b. <th> </th> c. <head> </head> d. <tr> </tr> ANSWER: (b) 2. Which CSS property specifies the background color of a table? a. background b. bgcolor c. background-color d. table-color ANSWER: (c) 3. Which HTML tag pair is used to group rows in the footer of a table? a. <footer> </footer> b. <tr> </tr> c. <tfoot> </tfoot> d. <td> </td> ANSWER: (c) 4. Which of the following describes the appearance of text within a th element? a. the text is centered b. the text is displayed one size larger c. the text has bold font weight
d. the text has bold font weight and is centered ANSWER: (d) 5. Which HTML attribute associates a table data cell with a table header cell? a. head b. align c. headers d. th ANSWER: (c) 6. Which CSS property eliminates the space between the borders on table cells? a. border-style b. border-spacing c. padding d. cellspacing ANSWER: (b) 7. Which HTML tag pair is used to begin and end a table row? a. <td> </td> b. <tbody> </tbody> c. <table> </table> d. <tr> </tr> ANSWER: (d) 8. Which of the following is the intended use of tables on web pages? a. configuring the layout of an entire page b. organizing information c. forming hyperlinks d. configuring a resume ANSWER: (b)
9. Which CSS property specifies the distance between the cell text and the cell border? a. border-style b. padding c. border-spacing d. cellpadding ANSWER: (b) 10. Which CSS pseudo-class applies to the first element of a specified type? a. :first-of-type b. :first-type c. :first-child d. :first ANSWER: (a) Fill in the Blank 11. The CSS property can be used to configure the color and width of a table border. ANSWER: (border) 12. The CSS property specifies the vertical alignment of the contents of a cell in a table. ANSWER: (vertical-align)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
13. Use the attribute to configure a table cell to occupy more than one row in the table. ANSWER: (rowspan) 14. is an attribute of the td element that associates the tabledata cell with a table header cell. ANSWER: (headers) 15. Use the element to provide a brief description of a table that displays on the web page. ANSWER: (caption) 16.
Apply Your Knowledge 1. PREDICT THE RESULT. Draw and write a brief description of the web page that will be created with the following HTML code: <!DOCTYPE html> <html lang="en"> <head> <title>Predict the Result</title> <meta charset="utf-8"> </head> <body> <table> <tr> <th>Year</th> <th>School</th> <th>Major</th> </tr> <tr> <td>2014-2018</td> <td>Schaumburg High School</td> <td>College Prep</td> </tr> <tr> <td>2018-2020</td> <td>Harper College</td> <td>Web Development Associates Degree</td> </tr> </table> </body> </html>
2. FILL IN THE MISSING CODE. This web page should have a table with a background color of #cccccc and a border. Some CSS properties and values, indicated by "_" , are missing. Fill in the missing code. <!DOCTYPE html> <html lang="en"> <head> <title>CircleSoft Web Design</title>
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
<meta charset="utf-8"> <style> table { "_":"_" ; "_":"_" ; } </style> </head> <body> <h1>CircleSoft Web Design</h1> <table> <caption>Contact Information</caption> <tr> <th>Name</th> <th>Phone</th> </tr> <tr> <td>Mike Circle</td> <td>920-555-5555</td> </tr> </table> </body> </html> Answer: table{ background- color:#cccccc; border: 2px solid black;} 3. FIND THE ERROR. Why doesn’t the table information display in the order it was coded? <!DOCTYPE html> <html lang="en"> <head> <title>CircleSoft Web Design</title> <meta charset="utf-8"> </head> <body> <h1>CircleSoft Web Design</h1> <table> <caption>Contact Information</caption> <tr> <th>Name</th> <th>Phone</th> </tr> <tr> <tr>Mike Circle</td> <td>920-555-5555</td> </tr> </table> </body>
</html> ANSWER: second <tr> should be <td> <!DOCTYPE html> <html lang="en"> <head> <title>CircleSoft Web Design</title> <meta charset="utf-8"> </head> <body> <h1>CircleSoft Web Design</h1> <table> <caption>Contact Information</caption> <tr> <th>Name</th> <th>Phone</th> </tr> <tr> <td>Mike Circle</td> <td>920-555-5555</td> </tr> </table> </body> </html>