如何决定应该选择什么来使标题加粗

发布于 2024-08-20 04:34:16 字数 809 浏览 5 评论 0 原文

如何判断应该是

, 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>

有利于可访问性的标题级别?

How to judge what should be <h2> , h3 h4 h5 h6 or <p><strong>Some text</strong></p> If we don't have knowledge about context

Only title of the page i can judge easily <h1>

How to judge others I always get content from clients in MS word 2007 format and client always use fontsize to make things smaller and bigger.

How we can best judge where client want Headings level and where he used bold text only for styling and where He really want to give emphasize on text.

<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>

Or any heading level

<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>

Which would be good for accessibility?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

我早已燃尽 2024-08-27 04:34:16

标题顾名思义,应该用于标题标题。标题使它们变得粗体以及根据其级别不同的大小。对于其他文本,您必须决定是否将其设置为粗体。

此外,标题标签有利于搜索引擎优化,SEO通常将页面标题或重要关键字放在这些标题标签内。

如果您只是想让某些内容显示为粗体,请使用<strong>标签代替。

我建议您的是:

出于 SEO 目的,您应该使用标题作为标题或重要关键字,并且应该使用其他粗体类型标签,例如 bstrong 当您想让某些内容显示为粗体时,可以按照您自己的意愿。

示例:

<H2>Amazing Laptops</h2>
<p>
  We deal in great <strong>quality laptops</strong> you will ever come across.
</p>

底线:

粗体类型标签之间存在天壤之别,例如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:

<H2>Amazing Laptops</h2>
<p>
  We deal in great <strong>quality laptops</strong> you will ever come across.
</p>

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.

风蛊 2024-08-27 04:34:16

如果“此处的一些文本”总结了紧随其后的部分或段落,那么它可以被视为标题。否则,它只是另一段文字。

另一个好的经验法则是标题不应包含冒号。所以:

<h1>Inquiries</h1>
<p>Please send your inquiries to blabla.</p>

但是:

<p><strong>Send your inquiries to:</strong><br />
blabla</p>

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:

<h1>Inquiries</h1>
<p>Please send your inquiries to blabla.</p>

But:

<p><strong>Send your inquiries to:</strong><br />
blabla</p>
染年凉城似染瑾 2024-08-27 04:34:16

我想说的是,不要担心格式来决定使用哪个标题,您可以随时使用 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 to H1, less prominent use closer to H6. Use the same Hn 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.

青衫负雪 2024-08-27 04:34:16

不幸的是,对于某段文本是否应该作为标题,没有明确的公式。如果您不明白客户在寻找什么,我建议您询问客户。由于我们还没有看到数据,所以我们更不知道。

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.

自在安然 2024-08-27 04:34:16

实际上仅使用标题标签作为占位符,并通过 CSS 定义调整设计已经很常见了。另外,

我认为就你的问题而言,你只是使用它们,因为它们根据你可以假设的层次顺序排列。就像你说的那样,页面标题使用

是有意义的,节标题可能是

等等,并且需要进行调整时只需更改它们字体大小是用CSS设置的。

.content_area h1{font-size:18px;font-weight:bold;}
.content_area h2{font-size:14px;font-weight:bold;}

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.

.content_area h1{font-size:18px;font-weight:bold;}
.content_area h2{font-size:14px;font-weight:bold;}

etc...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文