Web Development Quiz No 2 Qs
Web Development Quiz No 2 Qs
LEC #5
5 HTML Tables and Form
1. What are the elements used to define the structure of an HTML table?
An HTML table consists of one <table> element and one or more <tr>, <th>, and
<td> elements. The <tr> element defines a table row, the <th> element defines a table
header, and the <td> element defines a table cell.
2. Describe the purpose of a table caption and the table heading elements
Caption is used to provide a brief title or description for the table. Heading elements can be
useful for tables with many rows. The <caption> element is used to provide a brief title or
description of the table, which improves the accessibility of the table, and is strongly
recommended.
4. Create a table that correctly uses the caption, thead, tfoot, and
tbody elements. Briefly discuss the role of each of these elements.
thead is used to enclose a group of rows in a table as a header.
tfoot is used to enclose a group of rows in a table as a footer, such as last
row for summary.
tbody is for main body of the table.
6. What is the difference between HTTP GET and POST? What are the
advantages/disadvantages of each?
In GET method, values are visible in the URL. In POST method, values are
not visible in the URL.
GET has a limitation on the length of the values, generally 255 characters.
POST has no limitation on the length of the values.
GET Parameters remain in web browser history. POST Parameters are
not saved in web browser history.
Disadvantages of GET
• GET can’t be used to send word documents or images.
• The GET method cannot be used for passing sensitive information like
usernames and passwords.
• The length of the URL is limited.
POST
Advantages of POST
• You can send user-generated data to the web server.
• POST is a secure method as its requests do not remain in browser
history.
Disadvantages of POST
• It is not possible to save data as the data sent by the POST method is
not visible in the URL.
• You cannot see POST requests in browser history.
9. What are the two different ways of passing information via the URL?
GET Method
POST method
14. How can one make an HTML table more accessible? Create an
example accessible table with three columns and three rows in which the
first row contains table headings.
By using the caption element, a user can know about the table before getting
to know about each cell that is present in the table. When there is situation
where the user needs to insert a long depiction, then it is advised for the
user to put the table with an element and use an element to provide the
illustration. To make a user quickly observe where the data cell is present in
a column or row, one needs to connect the cells with the help of textual
illustration in the header.
6 Web Media
12. What is anti-aliasing and what issues does it create with transparent
images?
Refers to the visual "smoothing" of diagonal edges and contrast edges via
pixels of intermediate colors along boundary edges. There is a severe
interaction between anti-aliasing and binary transparency