Proper heading for a table

前端 未结 3 1319
青春惊慌失措
青春惊慌失措 2021-01-21 00:35

A matter of semantics. If I have a HTML page that is basically one big table, what element do I use for a header?

Ordinarily, you\'d use a h1 for the headi

3条回答
  •  礼貌的吻别
    2021-01-21 01:29

    There are not really standards too what to use in a situation like this. You're best off just picking the one that looks better and feels more appropriate for the page. Like you said both look silly so just use the one that fits better. Even then you can always customize in CSS what the h1 or caption look like so it isn't an end-all be-all type deal.

    Elements tend to be used for certain things, and some do have certain purposes, but visual things like h1 are not standardized.

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element

提交回复
热议问题