HTML should never be used to set the way an element appears that’s now the job of CSS. That’s because modern Web standards dictate the separation of structure (HTML) and style (CSS), and the above method violates that principle. However, aligning your tables in this manner is no longer correct, and has been deprecated in HTML5. For example, to set the alignment of a table to the center, one could simply write: … Before the adoption of CSS, tables weren’t just used to display tabular data exercise lists in a conventional manner but were instead more commonly used to control complete page layouts.īack then, HTML tables were used to define both the structure and the visual appearance of web pages, where the positioning of the table could be specified in HTML directly. The use of tables in web design has an interesting history.
0 Comments
Leave a Reply. |