QUESTION IMAGE
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.
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. You add the role=presentation attribute.