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

Join 109,548 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,222 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



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


My Contributions


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


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


Head DIC Head

Group Icon
Joined: 17 Mar, 2001
Posts: 14,489



Thanked 34 times

Dream Kudos: 1650

Expert In: Web Development

My Contributions


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

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

Fast ReplyReply to this topicStart new topic
Time is now: 9/7/08 10:21PM

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