What is the function of the border-collapse property in CSS for styling tables?
- To collapse adjacent cell borders into a single border.
- To create a drop-shadow for the table.
- To define the spacing between cells.
- To set the width of table borders.
The border-collapse property in CSS is used to determine how borders of table cells are displayed. There are mainly two values: separate (default) and collapse. When set to collapse, adjacent borders of table cells are merged into a single border, resulting in a more streamlined and cleaner appearance. On the other hand, when set to separate, borders will be displayed for each cell individually, and the border-spacing property can be used to determine the space between them.
Loading...
Related Quiz
- Which tag is utilized to insert images within the body of the HTML document?
- The _____ attribute in the ordered list is used to manipulate the starting number.
- Which HTML element should be used to reference the source of a quotation when it is not part of the surrounding text?
- Imagine you are developing a website that needs to be optimized for search engines. How would you utilize the head section, especially the meta tags, to enhance SEO?
- What is the purpose of the id attribute in internal document links?