Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

how do you use a table for layout with valid html5? a you cant use tabl…

Question

how do you use a table for layout with valid html5? a you cant use tables for layout with valid html5. b you add the table=presentation attribute. c you add the role=presentation attribute. d you add the border=1 attribute.

Explanation:

Brief Explanations

In HTML5, tables are intended for tabular data, not layout. However, if a table is used for layout (non - semantic use), the role = "presentation" attribute is added to indicate that the table is being used for presentation (layout) purposes rather than for tabular data. Option A is incorrect because you can use tables for layout with the proper attribute. Option B is incorrect as there is no table = "presentation" attribute. Option D's border = 1 is for showing a border, not for layout validity.

Answer:

C. You add the role=presentation attribute.