HTML is a semantic markup language, used to describe its contents. It is never to describe how its content *looks* nor *behaves*.
CSS is for describing how your content LOOKS.
Javascript is for describing how your content BEHAVES.
Tables are just part of HTML — and they have a place in marking up content: they are for tabular data.
If you content is something you’d use in Excel, it is a good choice for a table.
If you are using a table to position content on the page or “make things line up” then you are misusing HTML for layout purposes.
No comments:
Post a Comment