- From: O'Guin, Phaewryn <JDO09280@ccv.vsc.edu>
- Date: Thu, 31 Jan 2019 08:44:17 +0000
- To: "www-validator@w3.org" <www-validator@w3.org>
- Message-ID: <CY4PR01MB277367293CDE88B1B1F32F68CC910@CY4PR01MB2773.prod.exchangelabs.com>
The main tag should be on the outside of the table. The table can be looked at as just a way to organize the data inside the main container. The main element is used after the header and before the footer to indicate the main content of the webpage. It is only allowed once in a webpage and can't be used as a child element (so no putting it inside other tags like tables). If you look at a HTML table as a literal table in your dining room on which you organize your placemat, silverware, cups, and plates, the room itself is equal to the main tag. The whole house would be the html tag (with the house being a complete webpage because it has an address). The table is inside the room which is inside the house = the table tags are inside the main tags which are inside the html tags. Regards, Phaewryn J.D. O’Guin [Phaewryn J_D_ O'Guin] From: Jean-Pierre GAY <jpg@temesis.com> Sent: Wednesday, January 30, 2019 2:07 PM - 14:07 PM To: www-validator@w3.org Subject: Request for explanation: "the main element must not appear as a descendant of the td element" error message. This message is from an external sender. Please be careful when clicking on links and attachments. Hello, I've got this error message: "the main element must not appear as a descendant of the td element". The code was provided via Direct Input, and this code snippet allow to reproduce the error: <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <title>Table and zoning</title> </head> <body> <table role="presentation"> <tr> <td> <header>Header content</header> </td> </tr> <tr> <td> <main>Main content</main> </td> </tr> <tr> <td> <footer>Footer content</footer> </td> </tr> </table> </body> </html> However, nothing in the HTML specification indicates that "the main element must not appear as a descendant of the td element": Content model for td is flow content and parent content model expected for main is also flow content (except for article, aside, footer, header and nav). So, what is the meaning of this error message? Thanks and regards Jean-Pierre
Attachments
- image/jpeg attachment: image001.jpg
Received on Thursday, 31 January 2019 08:44:43 UTC