问题描述
如何在HTML
中进行另一个标题?
How can I make another heading in HTML
?
我使用了<h1>
,<h2>
,<h3>
,<h4>
,<h5>
和<h6>
,现在我想添加<h7>
和<h8>
,因为我有不同的文本类型我需要使用的.
I have used <h1>
, <h2>
, <h3>
, <h4>
, <h5>
and <h6>
, and now I would like to add <h7>
and <h8>
as I have different text types that I need to use.
如果您不能执行此操作,是否有任何方法可以调用CSS
工作表中的文本,而<p>
和<h1>
-<h6>
以外的其他内容?
If you cannot do this, is there any way to call-upon CSS
sheets for text, other then <p>
and <h1>
- <h6>
?
推荐答案
您可以在样式表中声明它
You can declare this in your stylesheet
h7, h8, h9 { /* You can just go on adding headings */
display: block; /* Because this is block level element */
}
h7 {
font-size: /*Whatever */ ;
}
h8 {
font-size: /*Whatever */ ;
}
但是我建议您不要这样做,因为它没有任何语义含义,从SEO的角度来看也是不好的
But I would suggest you not to do so, as it doesn't carry any semantic meaning, also it will be bad from SEO point of view
还可以查看 html5shiv ,只需在脚本中添加所需的元素
Also take a look at html5shiv, just add the elements you want in the script
这篇关于如何制作新的标题标签号,例如h7,h8等?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!