Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,383 Programmers. There are 1,388 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Dynamic Meta Description, is this okay?

 
Reply to this topicStart new topic

Dynamic Meta Description, is this okay?

darkknight187
post 21 Nov, 2007 - 07:51 PM
Post #1


New D.I.C Head

*
Joined: 21 Nov, 2007
Posts: 3



So in order to make my site more search engine friendly,
I am making my meta descriptions dynamic so they're different on each page.

Simple code,

CODE


Dim metaDescription As New HtmlMeta
metaDescription.Name = "description"
metaDescription.Content = ad.Description + " This is a test"
Page.Header.Controls.Add(metaDescription)




I have two questions,

1. When using the above code it changes the format of the header.
For example standard is title, description, keywords ect. . .

Now it enters the description, still inside the head tags, but it's last.
(title, keywords, link to .css, description)

Does anyone know if this is okay or not?????


2. Assuming that it doesn't matter when the description tag shows up in the head,

Does anyone know of a way to limit the description?

Otherwise some of the pages will have maybe 100 words in the description, and I have read that it should really be just a short summary.


Thank you to all.

Daniel
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


skyhawk133
post 21 Nov, 2007 - 09:14 PM
Post #2


Big Money... No Wammies!

Group Icon
Joined: 17 Mar, 2001
Posts: 13,550

dynamic descriptions are just fine, in fact, they are probably better than static because having the same description on every page can create duplicate content penalties, or simply not let the page show up in the serps.

You can put the meta tag anywhere in the head, the order does not matter.

Regarding the length, you should be able to limit the length using whatever client side language you are using to generate the description. You might post that particular question in the appropriate language forum (on the left side of each page). But yes, there is a maximum length and I believe it's around 250 characters.

Oh, and welcome to Dream.In.Code!!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

White
post 2 Apr, 2008 - 04:37 AM
Post #3


New D.I.C Head

*
Joined: 31 Mar, 2008
Posts: 1

QUOTE(skyhawk133 @ 21 Nov, 2007 - 09:14 PM) *

dynamic descriptions are just fine, in fact, they are probably better than static because having the same description on every page can create duplicate content penalties, or simply not let the page show up in the serps.

You can put the meta tag anywhere in the head, the order does not matter.

Regarding the length, you should be able to limit the length using whatever client side language you are using to generate the description. You might post that particular question in the appropriate language forum (on the left side of each page). But yes, there is a maximum length and I believe it's around 250 characters.

Oh, and welcome to Dream.In.Code!!!



Yeah, as you said there is character limit for description in google...And it will be 256 I think.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 03:52AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month