A little tiny script help? |
![]() ![]() |
A little tiny script help? |
![]()
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 164 Joined: May 2008 Member No: 647,219 ![]() |
Well, I was looking through createblog scripts, and there was this cute little one that I liked.
http://www.createblog.com/javascripts/887-...ion-w-keywords/ I use header and footer for my site, Now, The guy says to paste in your index section only, but there is only one code in the index section and that is the header class CODE <div class="mainheader">Like so</div> So, idk if I put it in index or no? |
|
|
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 164 Joined: May 2008 Member No: 647,219 ![]() |
So put ^-That code in my header page?
|
|
|
![]()
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 164 Joined: May 2008 Member No: 647,219 ![]() |
Gah :(
|
|
|
![]()
Post
#4
|
|
![]() Offline. ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 609 Joined: Mar 2007 Member No: 507,591 ![]() |
You can create a page called index.html and placed the code provided by divergent in it.
What script says to place the code into an the head tag it means; in valid html pages there are different parts such as the head and body. CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title> Website - Title </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <p> Content to be displayed in the browser window. </body> </html> the red section is the head section. and that where you place the code form the script. CODE <head>
<title> Website - Title </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META name="Description" content="SITE DESCRIPTION"> <META name="keywords" content="keywords,go,here,separate,by,commas"> </head> |
|
|
![]()
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 164 Joined: May 2008 Member No: 647,219 ![]() |
There's no header page. It's just the top of index.html page. So basically I can just put it as CODE <META name="Description" content="SITE DESCRIPTION"> <META name="keywords" content="keywords,go,here,separate,by,commas"> Just right above my index content? Or under it? Like before footer starts? Because on header, it starts with one of the classes. And uh, If I put it in there it wouldn't work. |
|
|
![]()
Post
#6
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 ![]() |
it doesn't go inside a div named "header." it goes between your <head></head> tags, which should be just after the <html> tag at the top of your pages.
|
|
|
![]() ![]() |