MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
<!DOCTYPE html><html><body><table border="2"><tr><th>Name</th><th ____________>Phone no</th></tr><tr><td>John</td><td>9898989898</td><td>9876543210</td></tr></body></html>Name Phone noJohn 9898989898 9876543210 |
| A. | colspan= "1" |
| B. | colspan= "2" |
| C. | rowspan= "2" |
| D. | rowspan= "2" |
| E. | |
| Answer» C. rowspan= "2" | |
| 2. |
By default, the content written between 10.Fill in the blanks with the help of options given below in order to get the following table when the below code is executed. |
| A. | th{ align: left; } |
| B. | th{ text-align: left; } |
| C. | th { font-align:center; } |
| D. | It cannot be done. |
| Answer» C. th { font-align:center; } | |
| 3. |
Which one of the following can be used to define the spacing between the cells of a table? |
| A. | border-spacing |
| B. | spacing |
| C. | cell-spacing |
| D. | table-spacing |
| Answer» B. spacing | |
| 4. |
Which one of the following tags is used to add caption to a table? |
| A. | <table-caption> |
| B. | <tcaption> |
| C. | <caption> |
| D. | <tc> |
| Answer» D. <tc> | |
| 5. |
<!DOCTYPE html><html><body><table border="2"><tr><th>Name</th><th>Phone no</th></tr><tr><td ______________>John</td><td>9898989898</td></tr><tr><td>9876543210</td></tr></body></html>Name Phone noJohn 9898989898 98765432106.In order to add space of 20px between cell content and its border of a table in html, which one of the following option is appropriate? |
| A. | th,td{ padding: 20px;} |
| B. | table{ margin:20px; } |
| C. | table{ border : 20px;} |
| D. | table{ padding: 20px; } |
| Answer» B. table{ margin:20px; } | |
| 6. |
Fill in the blanks with the help of options given below in order to get the following table when the below code is executed. |
| A. | colspan= "1" |
| B. | colspan= "2" |
| C. | rowspan= "1" |
| D. | rowspan= "2" |
| Answer» E. | |
| 7. |
By using which of the following options, the border of table can be collapsed? |
| A. | border-collapse:collapse |
| B. | table-border:collapse |
| C. | border:collapse |
| D. | table-border-collapse:collapse |
| Answer» B. table-border:collapse | |
| 8. |
With the help of which tag, is a row defined in HTML? |
| A. | <row> |
| B. | <table-row> |
| C. | <tablerow> |
| D. | <tr> |
| Answer» E. | |
| 9. |
Which HTML tag is used to define a table? |
| A. | <tb> |
| B. | <tl> |
| C. | <table> |
| D. | <tab> |
| Answer» D. <tab> | |