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

Join 136,589 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,122 people online right now. 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
21 Nov, 2007 - 06: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
+Quote Post

skyhawk133
RE: Dynamic Meta Description, Is This Okay?
21 Nov, 2007 - 08:14 PM
Post #2

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 14,947



Thanked: 47 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
+Quote Post

White
RE: Dynamic Meta Description, Is This Okay?
2 Apr, 2008 - 03: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
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 01:16AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month