首页 \ 问答 \ HTML:元描述标签的用途(HTML: Meta description tag's uses)

HTML:元描述标签的用途(HTML: Meta description tag's uses)

我正在开发一个只在公司内部使用的网站,而唯一进入网站的方法是在不同网站启动的弹出式窗口中。 是否有任何理由我应该包含<meta name="description" content="blah blah" / >标记? 除了搜索引擎之外,还有什么其他原因需要描述meta标签?


I'm working on a web site that is only used internally in the company, and the only way to get to site is in a popup window launched by different web site. Is there any reason I should include a <meta name="description" content="blah blah" /> tag? Besides search engines what other reason is there to have a description meta tag?

更新时间:2022-08-16 21:08

最满意答案

对于内部网站,没有理由添加description元标记。 这确实适用于搜索引擎的使用,所以除非你使用内部搜索引擎(比如谷歌迷你 ),这完全是不必要的。

从维基百科 - 描述属性

description属性提供了网页内容的简要说明。 这样,如果搜索引擎无法根据页面内容自动创建自己的描述,则网页作者可以为列表提供比可能显示的更有意义的描述。

(强调我的)


For an internal site there is no reason to add a description meta tag. It is indeed for search engine usage, so unless you are using an internal search engine (say a google mini) this is entirely unneeded.

From wikipedia - the description attribute:

The description attribute provides a concise explanation of a Web page's content. This allows the Web page authors to give a more meaningful description for listings than might be displayed if the search engine was unable to automatically create its own description based on the page content.

(emphasis mine)

相关问答

更多
  • 它使用了CsQuery,因此你可以使用像jQuery这样的CSS选择器: https://github.com/jamietre/CsQuery 根据您的示例,我创建了一个测试路径: Get["description"] = _ => @" @Model.Title
  • 你误解了意图。 作者说不要使用完全引用INSIDE一个使用完整引用的html属性。 像这样 (Bad) You are misinterpreting the intent. The author is saying don't use full quotations INSIDE an html attribute which is using full quotations. ...
  • 您应该对HTML值进行编码,就像您放入HTML属性中的每个值一样。 You should HTML encode the value, like every value that you put in an HTML attribute.
  • 对于内部网站,没有理由添加description元标记。 这确实适用于搜索引擎的使用,所以除非你使用内部搜索引擎(比如谷歌迷你 ),这完全是不必要的。 从维基百科 - 描述属性 : description属性提供了网页内容的简要说明。 这样,如果搜索引擎无法根据页面内容自动创建自己的描述,则网页作者可以为列表提供比可能显示的更有意义的描述。 (强调我的) For an internal site there is no reason to add a description meta tag. It is ...
  • 从网站排名的角度来看,Google不支持元描述标记。 但是,他们可能会使用您的说明标记来提供您网站的说明。 如果您刚刚更改了元描述标记,请让Google有时间回来再次抓取您的网站。 Google doesn't support the meta description tag in the sense of ranking your website. They may however use your description tag to provide a description of your webs ...
  • 我假设你正试图获取内容属性值,所以尝试使用 $data = $crawler->filterXpath('//meta[@name='description']') ->extract(array('content')); 并循环$data 。 I assume you are trying to get content attribute value so try to use $data = $crawler->filterXpath("//meta[@name='description']")->ex ...
  • 使用正则表达式来解析HTML是不好的做法 。 令人烦恼的是,jQuery不支持在head解析元素,只有body 。 所以直接使用JS代替: window.onload = function(){ $.ajax({ type: 'GET', url: '/', dataType: 'html', success: function(data) { //cross platform xml ob ...
  • 确保告诉您网站使用的字符编码。 如果没有它,即使您正确输出UTF-8格式的值,消费者(在这种情况下为Facebook)也不会知道在读取数据时使用的编码。 一种方法是使用这个: 在HTML5中, 您还可以说 : Make sure that you tell what character encoding the si ...
  • WordPress为每个添加的术语/分类单元内置了“标签”,“类别”和自定义“分类法”的描述。 您可以使用API函数tag_description()或更低级别的API fn term_description() 。 WordPress got descriptions for "tags", "categories" and custom "taxonomies" built in for each added term/taxon. You can use the API function tag_de ...
  • 根据定义, meta标记的属性内容只是文本:没有标记被识别(尽管解析了字符引用)。 所以这个例子是有效的,但这只是一种形式。 所有其余的都依赖于解释meta标记的软件。 然而,将其属性视为除纯文本之外的任何内容都是奇怪的。 (而且我认为大肆渲染是非常充足的,因为它可以使文字看起来很糟糕, 你不需要这样做。) The content of the attributes of a meta tag is by definition just text: no tags are recognized (thoug ...

相关文章

更多

最新问答

更多
  • 在javascript中创建类以创建对象并在Java中创建类和对象之间的区别(Difference between creating a class in javascript to create an object and creating an class and object in Java)
  • Facebook API:将身份验证详细信息从Javascript SDK发送到PHP SDK(Facebook API: Send authentication detail from Javascript SDK to PHP SDK)
  • 如何停止队列动画jquery?(How can I stop queue animation jquery?)
  • 使用C#的井字游戏中的人工智能(Artificial Intelligence in Tic-Tac-Toe using C#)
  • 多少流量可以共享虚拟主机(对于Python Django站点)支持?(How Much Traffic Can Shared Web Hosting (for a Python Django site) support?)
  • 带有CIFilters的CAShapeLayer(CAShapeLayer with CIFilters)
  • 如何在Angular 2中读取JSON #text(How to read in Angular 2 the JSON #text)
  • 如何在xml中读取自闭标签的属性?(How to read self closing tag's attribute in xml?)
  • 无法使用http put将图像上传到亚马逊S3(Cannot upload image to amazon s3 using http put)
  • 文件结束无限循环(end of file infinite while-loop)
  • 在cpp的模板(template in cpp)
  • 在构建库时,clang和clang ++有什么区别?(What's the difference between clang and clang++ when building a library?)
  • ng类中的表达式(expression inside ng-class)
  • 在PHP中获取随机布尔值true / false(Get random boolean true/false in PHP)
  • 管道的高效分块用于严格的字节串(Efficient chunking of conduit for strict bytestring)
  • Python ternary_operator(如果其他标志做了其他操作,则执行其他操作)(Python ternary_operator (do-somthing if flag else do-another))
  • Sencha Touch面具发布(Sencha Touch mask ondisclosure)
  • 验证脚本上的通知[重复](Notices on validation script [duplicate])
  • 朋友功能(friend function)
  • 基于角坐标平移和变换平面几何(Translate and transform plane geometry based on corner coordinates)
  • Rails:'如果在本地运行'条件javascript标记包括(Rails: 'if running locally' conditional javascript tag include)
  • 解压文件(Unzipping files)
  • 使用ui-router以角度加载变量状态(loading in variable states with ui-router in angular)
  • 创建Azure云服务需要多长时间?(how long does it take to create an Azure Cloud Service? How to view log information?)
  • 指向整数的指针数组(Array of pointers to integers)
  • Laravel服务提供商没有看到我的包的主要类(Laravel service provider does not see the main class of my package)
  • 这个关于VSS / RSS / PSS / USS的解释是否准确?(Is this explanation about VSS/RSS/PSS/USS accurate?)
  • 在Django-Admin中通过row-id排序显示项目(Ordering the display items by row-id in Django-Admin)
  • 如何使用cythonize启用`--embed`?(How to enable `--embed` with cythonize?)
  • 用于将文本多行设置的Excel脚本(Excel script for ereasing text multiple rows)