Forum Moderators: open

Message Too Old, No Replies

Meta name="description", Is it same with HTML code?

         

PowerUp

1:53 pm on Mar 22, 2007 (gmt 0)

10+ Year Member



Hi, in HTML when I want to open quote I will type &ldquo
How about in meta name description? do I type " or &ldquo?

PowerUp

1:56 pm on Mar 22, 2007 (gmt 0)

10+ Year Member



I just realised that the meta tag is inside the html tag, so I'll assume the I should use &ldquo.

rocknbil

4:07 pm on Mar 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a good question, but I have seen entities in search engine result snippets, which tells me the info they grab from the description tag is literal. So I use 'single quotes' in the meta descriptions and alt tags.

tedster

4:36 pm on Mar 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I agree - I always use single quotes because of seeing literal transcriptions of html entites in the search results..

PowerUp

1:32 pm on Mar 24, 2007 (gmt 0)

10+ Year Member



but I have seen entities in search engine result snippets, which tells me the info they grab from the description tag is literal

Er... I don't understand what you mean. Do you mean that if I use “ then the search engine will display “ and not " as intended?

tedster

3:31 pm on Mar 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Exactly.

penders

4:46 pm on Mar 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you mean that if I use “ then the search engine will display “ and not " as intended?

I'm not entirely convinced... I too have seen a lot of html entities in search engine results, but as far as I can tell they are always by design (?!) - although often unintentionally I think! Looking at the source of the page, you can see that, apart from the obvious mistake of missing off the final ';' - the '&' is often incorrectly encoded as '&' (possibly by the users page editor?), so the resulting source in the page is something like '“' which results in '“' being output in the description/title or wherever. (?)

One thing I have noticed, however, is where the html entity is all capitals (!) in the page source, like '&' - this does seem to appear in G as the literal '&', despite browsers rendering this as '&' (this contrasts with the lowercase '&' which would appear as '&' in G as expected).

But, like rocknbil and tedster, I would still avoid using html entities within these attributes (ie. stick with single quotes) if at all possible. They are, afterall, purely for information and using markup that requires interpretation cannot help.

g1smd

7:28 pm on Apr 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Very often the & is actually missing the ; from the end, that's why it appears as a literal.