Can I put <Title> in <Body> ?

R

Ricky Hobson

Hi,

Is it okay to put the <Title> tag into <body> instead of <Head> ?

I want to do the for two reasons.

1. I am using ASP to return info and publish title like this <Title>whatever
<%=strName%></Title>
2. I am using a dwt file which dumps the title everytime I update the file.
I have tried adding the title in an editable region etc, but it still seems
to revert back.

regards

Ricky
 
T

Thomas A. Rowe

No you can not put the <title> in the body, however you can make the entire head section of the DWT
a editable region or if you want to ways set the titles via script, hard code <%=strName%> in the
DWT.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
R

Ricky Hobson

Hi Thomas,

Thanks for the reply, I have tried the editable region thing but it still
seems to dump the title after I do any changes to the .dwt file.

For example, if I do the following:-

<Head>
< -- #BeginEditableRegion "blah" -->
< -- #EndEditableRegion -->
</Head>


and then in an .ASP file I do this

< -- #BeginEditableRegion "blah" -->
<title>Hello World</Title>
< -- #EndEditableRegion -->


If I go back to the .dwt file and change things, the title above gets
removed. I have looked up examples of how do the editable regions and the
above should work as far as I can see. Am I missing something?

regards

Ricky
 
T

Thomas A. Rowe

1. Place all of the title and meta tags in the editable region.
2. Make "Hello World" a ASP variable, like <%=PageTitle%>
3. Populate from a database


< -- #BeginEditableRegion "blah" -->
<title><%=PageTitle%></Title>
Other meta tags....
< -- #EndEditableRegion -->

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
R

Ricky Hobson

Hi Thomas,

Thanks for replying again, I will try your suggestion.

thanks

Ricky.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top