如何决定应该选择什么来使标题加粗 或?
如何判断应该是
, h3
h4
h5
h6
或一些文本
如果我们不了解上下文,
一些文本
我只能轻松判断页面的标题< h1>
如何评判他人 我总是从客户处获得 MS Word 2007 格式的内容,并且客户总是使用字体大小来使内容变小或变大。
我们如何才能最好地判断客户想要的标题级别以及他仅在样式上使用粗体文本的位置以及他真正想要强调文本的位置。
<p><strong>Some text here</strong></p>
<p>Some more text here Some more text hereSome more text here
Some more text hereSome more text here Some more text here
</p>
或者任何
<H*>Enquiries to:</h*>
<p>Some more text here Some more text hereSome more text here
Some more text hereSome more text here Some more text here
</p>
有利于可访问性的标题级别?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
标题顾名思义,应该用于标题或标题。标题使它们变得粗体以及根据其级别不同的大小。对于其他文本,您必须决定是否将其设置为粗体。
此外,标题标签有利于搜索引擎优化,SEO通常将页面标题或重要关键字放在这些标题标签内。
如果您只是想让某些内容显示为粗体,请使用<strong>标签代替。
我建议您的是:
出于 SEO 目的,您应该使用标题作为标题或重要关键字,并且应该使用其他粗体类型标签,例如 b 或 strong 当您想让某些内容显示为粗体时,可以按照您自己的意愿。
示例:
底线:
粗体类型标签之间存在天壤之别,例如strong 和标题标签。它们服务于不同的目的,你无法对它们进行比较。
Heading are what their name suggests, they should be used for headings or titles. Heading make them bold as well as different sizes based on their level. For other piece of text, you have to decide whether you want to make it bold or not.
Also, heading tags are good for search-engine-optimization, the SEOs usually put the page titles or important keywords inside these heading tags.
If you simply want something to appear bold, use the <strong> tags instead.
What i would suggest you is:
You should use headings for the titles or important keywords for the SEO purpose and you should use the other bold type tags such as b or strong at your own will when you want to make something appear bold.
Example:
Bottom Line:
There is a world of difference between bold type tags such as strong and heading tags. They serve the different purpose, you can not compare them.
如果“此处的一些文本”总结了紧随其后的部分或段落,那么它可以被视为标题。否则,它只是另一段文字。
另一个好的经验法则是标题不应包含冒号。所以:
但是:
If the "some text here" sums up the section(s) or paragraph(s) that come directly after it, then it can be considered a header. Otherwise, it's just another piece of text.
Another good rule of thumb is that headers should not contain colons. So:
But:
我想说的是,不要担心格式来决定使用哪个标题,您可以随时使用 CSS 调整外观。
我的经验法则是考虑您希望在组织良好且分层的目录中看到什么。如果您想要其中包含文本,请使用
H[123456]
标签。那么更突出的使用更接近H1
,不太突出的使用更接近H6
。对于具有相同重要性级别的事物使用相同的Hn
。如果您最终没有目录也没关系,但这将帮助您思考如何组织标题。
I would say don't worry about the formatting to decide which heading to use, you can always adjust the look with CSS.
My rule of thumb is to think of what you would want to see in a well organized and hierarchical table of content. If you would want the text in it then use a
H[123456]
tag. Then the more prominent use closer toH1
, less prominent use closer toH6
. Use the sameHn
for things that are at the same level of importance.It does not matter if you don't have a TOC in the end, but that will help you think how to organize your headings.
不幸的是,对于某段文本是否应该作为标题,没有明确的公式。如果您不明白客户在寻找什么,我建议您询问客户。由于我们还没有看到数据,所以我们更不知道。
Unfortunately there is no definitive formula for whether some piece of text should be a heading or not. If you don't understand what your client is looking for, I suggest you ask the client. We have even less idea since we haven't seen the data.
实际上仅使用标题标签作为占位符,并通过 CSS 定义调整设计已经很常见了。另外,
我认为就你的问题而言,你只是使用它们,因为它们根据你可以假设的层次顺序排列。就像你说的那样,页面标题使用
是有意义的,节标题可能是
等等,并且需要进行调整时只需更改它们字体大小是用CSS设置的。
ETC...
It's pretty common anymore to actually just use the header tags as placeholders really, and define adjust the design via CSS. Also
I think as far as you're question, you kind of just use them as they are in a hierarchical order based on what you can assume. Like you said page header would make sense to use
<h1>
, section header maybe<h2>
and so on, and as adjustments need to be made just alter they're font size with CSS.etc...