|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Adding title tags
Our web site is made up of a small number of ASP pages to provide a uniform look to the site (header, nav bar, footer, etc.) but the content (body) of each page (>100 different pages) is added with the #include directive. Is there a way to add title tags to each content page so that they are visible to search engines? Since the #include directive is in the body of the ASP page, I'm not sure how to add tags (title or meta tags) for each piece of content. In short, how can I make specific key words in the content more visible to search engines?
|
|
#2
|
|||
|
|||
|
Use a variable in the template, set the variable on each individual page.
Your template file: Code:
<html> <head> <title><%=PageTitle%></title> </head> <body> <h1><%=PageTitle%></h1> </body> </html> And the actual page: Code:
<% Dim PageTitle PageTItle = "My Page Title" %> <!-- #include file="template.asp" --> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Adding title tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|