Suppose I have some sort of proprietary web framework开发者_运维知识库. Should I include a <meta generator="My framework">
tag in the generated files?
I noticed that StackExchange 0.9 applications do that, and wondered what are the pros/cons of doing it. Does it have any effect, or is it just useful for people looking at the source to see?
I've never seen a tag formatted like that before, with an attribute called generator
and the generating software as its value. Usually you'll see it presented as name="generator"
and the generating software as its corresponding content, for example:
<meta name="generator" content="WordPress 3.0.1" /> <!-- leave this for stats -->
Previously I was unaware of any standard for this, however it looks like HTML5 has gone ahead and standardized the use of "generator" as a metadata name. It describes it thus:
The value must be a free-form string that identifies one of the software packages used to generate the document. This value must not be used on pages whose markup is not generated by software, e.g. pages whose markup was written by a user in a text editor.
In the past when dynamic web apps weren't that prevalent, certain web site editors, like FrontPage (there, I said it), would automatically insert generator tags when you create new HTML documents or publish sites using them. This was taken to mean "This page was created using FrontPage". I don't think any modern editors or IDEs do this anymore, but I could be wrong. It's definitely commonly used in dynamic web apps today, however.
A benefit (or a con?) is that you can show up in searches done for generator.
Automatically generated (also called "auto-generated"—content) is content that's been generated programmatically. In cases where it's intended to manipulate search rankings and not help users, Google may take actions on such content. Some example cases include, but are not limited to:
Text that makes no sense to the reader but which may contain search keywords. Text translated by an automated tool without human review or curation before publishing. Text generated through automated processes, such as Markov chains. Text generated using automated synonymizing or obfuscation techniques. Text generated from scraping Atom/RSS feeds or search results. Stitching or combining content from different web pages without adding sufficient value. form google...
精彩评论