vs in HTML5

后端 未结 3 798
天涯浪人
天涯浪人 2020-12-18 03:21

I\'ve been having difficulty deciding when to use b and when to use span. The new semantics of the b element seem vague.

The b element represents a span

3条回答
  •  天涯浪人
    2020-12-18 03:34

    My personal design guidelines are:

    (example) Should be used for decorative purposes only.

    That is to say, content that does not gain anything more or less from a heavier font, but might look better in that place if it had it.

提交回复
热议问题