Help - Search - Members - Calendar
Full Version: A little tiny script help?
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
Jamesisgsnap
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?
Jamesisgsnap
So put ^-That code in my header page?
Jamesisgsnap
Gah :(
newkidontheblock
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>
Jamesisgsnap
QUOTE(divergent @ Apr 15 2009, 11:11 PM) *
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.
fixtatik
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.