SEO在源代码中出现红色字符? >为什么?语法高亮?浏览器源代码?

发布于 2024-08-20 06:11:02 字数 412 浏览 3 评论 0 原文

SEO 问题红色字符

大家好,

我正在使用 Dreamweaver 构建网站,但是当我查看源代码时,它的 " 字符 是红色的。有人告诉我,任何出现红色的东西都会阻碍谷歌的搜索引擎优化。有谁知道为什么它显示为红色?

例如,当我在网站上查看代码源时,我得到红色的 gt;

<a href="miss-sold-mortgages.html" class="darkblue">Find out more&gt;&gt;</a></span>
                </div>

感谢您的帮助

问候 朱迪

SEO issue red characters

Hi all

I'm building webstes using dreamweaver, but when I look at the source code it is red for " characters. I'm told anything appearing in red puts off Google's seo. Does anyone know why this appears in red?

For example when I view code source on the site i get the gt; in red

<a href="miss-sold-mortgages.html" class="darkblue">Find out more>></a></span>
                </div>

Thanks for your help

Regards
Judi

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

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

发布评论

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

评论(6

终难遇 2024-08-27 06:11:02

有人告诉我,任何出现红色的东西都会阻碍谷歌的搜索引擎优化。

那是垃圾。

有人知道为什么它显示为红色吗?

可能是因为它是一个实体并且已被语法荧光笔标记,因此您可以在文字中发现。

I'm told anything appearing in red puts off googles seo.

That is garbage.

Does anyone know why this appears in red?

Probably because it is an entity and has been marked by the syntax highlighter so you can spot in amongst literals.

ヅ她的身影、若隐若现 2024-08-27 06:11:02

除了 Google SEO 之外,重要的是要了解使用 世界差异 >CSS 控制文本颜色,以及由DreamWeaver 编辑器。

在 Dreamweaver 等工具中查看页面的 HTML 源代码时看到的颜色与在浏览器中查看页面时看到的颜色没有关系。

所发生的一切是 Dreamweaver 将 HTML 转义字符 语法着色为红色,我很确定您无需担心。

编辑

您已澄清,事实上您并未在 Dreamweaver 中查看 HTML 源代码。

您正在从 Firefox 查看源代码吗?

Firefox 语法在其“源”查看器中对 HTML 进行着色。 HTML 转义码显示为红色(Firefox 3.6、Windows)。然而,这一点仍然成立,这只是语法着色,与浏览器如何渲染页面或与 Google SEO 相关的任何内容无关。

Google SEO aside, it's important to understand that there's a world of difference between using CSS to control the colour of text, and the syntax highlighting done by the DreamWeaver editor.

Colours seen when you are viewing the HTML source of your page in a tool like Dreamweaver have nothing to do with the colours seen when viewing your page in a browser.

All that's happening is that Dreamweaver is syntax colouring HTML escape characters in red, I am pretty sure that you have nothing to worry about.

Edit

You clarified that in fact you're not viewing the HTML source in Dreamweaver.

Are you viewing source from Firefox?

Firefox syntax colours HTML in its "source of" viewer. HTML escape codes are shown in red (Firefox 3.6, Windows). The point still stands however that this is just syntax colouring and has nothing to do with how your page gets rendered by the browser, or anything to go with Google SEO.

辞取 2024-08-27 06:11:02

这可能有点偏离主题,当然对你们来说是理所当然的,但无论如何:

Firefox 将所有打开的行突出显示为红色。例如,如果您有:
元内容=“文本...
并且没有>>当您使用“查看页面源代码”时,Firefox 会将该行显示为红色。

尽管这不是您的案例中红色突出显示的原因。

This might be a bit off topic and of course no-brainer for you guys, but anyway:

Firefox highlights all open lines as red. If you have for example:
meta content="text...
and there is no /> at the end of the line, then Firefox makes that line appear red when you use "view page source".

Though that's not the reason for red highlight in your case.

空城缀染半城烟沙 2024-08-27 06:11:02

我可以在 Firefox 11 (Win) 中查看源代码,并看到粗体和非粗体的红色突出显示标记。如果我将鼠标悬停在粗体红色标记上,我会看到 Firefox 在 HTML 源代码中发现的问题的弹出描述。例如:

  • 在没有首先看到文档类型的情况下看到开始标记。预期 ""
  • 在“table”中看到开始标记“div”
  • 杂散结束标记“table”
  • 杂散结束标记“div”

在非粗体红色突出显示的语法中,我看到诸如以下的实体:
 &>

Firefox 11 允许您配置和使用外部应用程序来查看源代码。它还在 about:config 中具有多个配置值(例如“view_source.syntax.highlight”),用于控制功能的交付方式。

Firefox 查看源代码中突出显示的粗体红色源代码可能会或可能不会导致 SEO 问题。这表明浏览器发现您正在查看的页面中的 HTML 标记存在问题。

关于 SEO 无效 HTML 对您造成多大伤害的问题一直存在争议。 (正如在单独的答案中指出的那样,还取决于无效标记出现的位置。)此 YouTube 视频讨论了 HTML 验证和 Google SEO:http://www.youtube.com/watch?v=2XlKn6I9rSc

I can view source in Firefox 11 (Win) and see bolded and non-bolded red highlighted markup. If I hover over the bolded red markup, I see a pop-up description of the problem Firefox is finding with the HTML source. For example:

  • Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>"
  • Start tag "div" seen in "table"
  • Stray end tag "table"
  • Stray end tag "div"

In non-bolded red highlighted syntax I see entities such as:
 , &, >

Firefox 11 allows you to configure and use an external application to View Source. It also has several configuration values in about:config ("view_source.syntax.highlight" for example) that control how the feature is delivered.

The bolded red source highlighting in Firefox View Source may or may not cause issues with SEO. It's an indication that the browser is finding an issue with the HTML markup in the page you're viewing.

The issue of how much invalid HTML harms you with respect to SEO is debated. (And as pointed out in a separate answer, also depends on where the invalid markup appears.) This youtube video discusses HTML validation and Google SEO: http://www.youtube.com/watch?v=2XlKn6I9rSc.

稚气少女 2024-08-27 06:11:02

有人告诉我,任何出现红色的东西都会阻碍谷歌搜索引擎优化

不。只是不。谷歌的搜索引擎优化以文本为基础,它忽略页面内的任何颜色或格式。

源代码中文本的颜色仅基于 DreamWeaver 的语法突出显示 - 如果您在浏览器中运行并查看页面,它不应该是这种颜色(假设您实际上没有设置颜色为红色)。

I'm told anything appearing in red puts off googles seo

No. Just no. Google's SEO works on a text-basis, it ignores any colouring or formatting within a page.

The colour of the text in the source code is simply based on DreamWeaver's syntax highlighting - if you run and view your page in a browser, it shouldn't be this colour (assuming you aren't actually setting the colour of this to red).

左秋 2024-08-27 06:11:02

Google 将检查相同颜色文本和背景的颜色,以确保页面上没有使用隐藏的关键字。对于谷歌来说,白底白字是禁忌。

在 Dreamweaver 中,HTML 实体 的语法突出显示不会转换为错误的“标记” SEO 书。

另一方面,如果您的链接文本中有包含 (>) 的关键短语,那么您针对该关键短语的 SEO 工作就会失败,因为 > 被视为关键短语的一部分。

您可以在 Dreamweaver 的首选项中关闭实体的红色突出显示......

Google will check for color on same color text and background to make sure hidden keywords aren't being used on the page. To google, white on white text is a no-no.

In Dreamweaver, syntax highlight of HTML entities does not translate into a bad 'mark' in the SEO book.

Now on the other hand, if you have key phrases in your link text that includes (>)'s, then your SEO work for the key phrase is shot because the >'s are counted as part of the key phrase.

You can probably turn red highlighting of entities off in Dreamweaver's preferences....

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