CSS 属性“text-transform”是否有效?影响SEO结果?

发布于 2024-08-20 10:29:48 字数 399 浏览 2 评论 0原文

我正在构建一个网站,其中包含大量 1999 年风格的大写导航和标题。我只是简单地添加显示的文本内容(大写),但该项目的另一位设计师坚持在他的 HTML 中使用小写文本,并使用应用的样式将其大写:

.tedious {text-transform:uppercase;}

我理解样式与内容分离的论点,但在这种情况下,这并不重要,因为我个人不会维护该网站,我也从未想过客户需要取消所有这些文本的大写。问题是:1. 搜索引擎是否会注意文档中文本的大小写;2. 爬虫是否会阅读我的样式表并查找此类内容(我认为不会)。我知道 BOLD、STRONG、EM 等对 SEO 的影响(减弱)所以我可以想象 CAPS 会出现的情况,但从未听说过有人真正声称,更不用说证实这一点了。

过去几个月挖掘这个网站。第一篇文章。

I am building a site with a ton of 1999 style capitalization of navigation and headings. I have been simply adding in the text content as it appears (capitalized), but the other designer on the project insists on using lower case text in his HTML and capitalizing it with an applied style:

.tedious {text-transform:uppercase;}

I understand the argument of separation of style from content, but in this case it really doesn't matter because I personally will not maintain the site, nor do I ever imagine that the client will need to un-capitalize all of this text. The question is: 1. will search engines pay any attention at all to capitalization of text in a document and 2. would a crawler go so far as to read my style sheet and look for such things (me thinks not). I know that BOLD, STRONG, EM, etc have a (diminishing) effect on SEO so I can imagine a scenario where CAPS would, but have never heard of anyone actually claiming, let alone confirming this.

Digging this site the last few months. First post.

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

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

发布评论

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

评论(4

他不在意 2024-08-27 10:29:48

它只会影响搜索结果中显示的内容,您同事的工作将在结果中显示为小写。

你提到了风格与内容的分离,但我不相信文本转换真的是一种风格,它是内容的改变,但我相信有些人会反驳。

It will only effect what is shown in the search results, you colleagues work will show as lower case in the results.

You mentioned separation of style from content, but i'm not convinced that text-transform is a style really, it's a change of content, i'm sure some people would argue the other side though.

鹿港小镇 2024-08-27 10:29:48

如果我是一个搜索引擎 - 我不会关心大小写。我会关心内容。

从人类可读性的角度来看 - 大写字母并不容易阅读。

if i was a search engine - I wouldn't care about casing. I would care about the content.

From a human readability standpoint - upper case isn't as easy to read.

年华零落成诗 2024-08-27 10:29:48

嗯,我在学校被教导所有专有名词(例如名称和地名)都应以大写字母开头。

在不考虑大小写的情况下,谷歌如何知道我是在谈论阅读(如在一本书中)还是阅读(如在伯克郡的雷丁镇)?我认为大写绝对是一种语义指标,而不仅仅是一种美观的情况,因此是可用于搜索引擎优化的一个因素。

正如其他地方所指出的,Google 显然了解用于渲染页面的 CSS(例如,Google 可以发现黑帽技术,例如白色背景上的白色文本)。

那么,如果大写(或缺乏)是一个相关的 SEO 因素,那么 CSS 文本转换(或缺乏)值也可以成为 SEO 因素吗?
是的 - 因为谷歌认为页面速度是一个重要因素。不需要 CSS 转换的文本将显示得更快。

Well, I was taught at school that all proper nouns (eg names and names of places) should begin with capital letters.

How would Google know whether I was talking about reading (as in a book) or Reading (as in the town of Reading, Berkshire), without taking into account the capitalisation? I would argue that capitalisation is definitely a semantic indicator rather than simply a case of aesthetics, and is therefore one factor that could be used for SEO.

As noted elsewhere, Google clearly does have knowledge of the CSS being used to render a page (eg Google can spot black-hat techniques such as white text on a white background).

So if capitalisation (or lack of) is a relevant SEO factor, can the CSS text-transform (or lack of) value also be an SEO factor?
Yes - because Google considers page speed to be an important factor. Text that doesn't need to be transformed by CSS will display faster.

烂人 2024-08-27 10:29:48

谷歌的回答:

我不认为我们会对全大写标题做任何特别的事情,但这感觉就像你想要在CSS而不是内容中做的事情,因为它更多的是关于样式。

https://mobile.twitter.com/JohnMu/status/1438159561391751170?s= 19

Answer from google:

I don't think we'd do anything special with all-caps headings, but it feels like the kind of thing you'd want to do in CSS instead of in the content, since it's more about styling.

https://mobile.twitter.com/JohnMu/status/1438159561391751170?s=19

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