html中h1什么意思,为什么HTML中的h1-h6标签名称不同?

为什么h1到h6中的HTML标签不同,而不是像这样的语法?

Headings

Six levels of heading are supported. (Note that a hypertext node

within a hypertext work tends to need less levels of heading than

a work whose only structure is given by the nesting of headings.)

A heading element implies all the font changes, paragraph breaks

before and after, and white space (for example) necessary to render

the heading. Further character emphasis or paragraph marks are not

required in HTML.

H1 is the highest level of heading, and is recommended for the

start of a hypertext node. It is suggested that the the text of

the first heading be suitable for a reader who is already browsing

in related information, in contrast to the title tag which should

identify the node in a wider context.

The heading elements are

,
,
,
,
,

您还必须意识到原始HTML规范中的属性使用最少。每个元素都用于标记文档,强调易于编写和易于阅读。我只能假设行的标记会被拒绝,因为输入的时间太长,会妨碍页面的内容。

该用法早于任何外部样式表的概念,因此选择器在决定命名约定时不能发挥任何作用。

一旦定义了元素,就没有理由重命名它们,因为它会导致向后兼容性问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值