|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
Where to inser <head></head>? Please advise
04-08-2007, 01:06 AM
|
Where to inser <head></head>? Please advise
|
Posts: 132
|
I have inserted my meta tag <head></head> wrongly in idex.template.php of my smf1.1.2 forum. Need advise on where to insert it. My site www.emedinews.com. Also, I found 26 errors on my site:
http://validator.w3.org/check?uri=www.emedinews.com
please advise
Last edited by kenang82; 04-08-2007 at 01:41 AM..
|
|
|
|
04-08-2007, 02:43 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 905
Name: Travel Agent
|
Most of your errors are due to the fact you're using XHTML and didn't close the ends of your tags properly ... copy / paste the following into your site:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>eMediNews Forum - Medical Forum for All</title>
<meta name="revisit-after" content="1 day" />
<meta name="description" content="All-in-one medical foum for the public, health professionals and students. Get latest update on health-related issues. Great place for health professionals to interact and share their knowledge and experience. You may advertise your health-related sites and products in this forum for free." />
<meta name="keywords" content="medicine, public, issue, forum, medical, health, doctor, information, eMediNews, nursing, paramedicine, paramedic, biomedical, expert, advertise, product, medical school, pharmacy, nurse, question, answer, professional" />
<meta name="robots" content="index, follow" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta name="author" content="Dr. Teoh KA" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="en" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/print.css?fin11" media="print" />
<link rel="help" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&action=help" target="_blank" />
<link rel="search" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&action=search" />
<link rel="contents" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&" />
<link rel="alternate" type="application/rss+xml" title="eMediNews - RSS" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&type=rss;action=.xml" />
<link rev="made" href="admin@emedinews.com" />
<script language="JavaScript" type="text/javascript" src="http://emedinews.com/Themes/default/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://emedinews.com/Themes/default";
var smf_images_url = "http://emedinews.com/Themes/default/images";
var smf_scripturl = "http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
// ]]></script>
Last edited by travelagent; 04-08-2007 at 02:44 AM..
|
|
|
|
04-08-2007, 03:09 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 132
|
Quote:
Originally Posted by travelagent
Most of your errors are due to the fact you're using XHTML and didn't close the ends of your tags properly ... copy / paste the following into your site:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>eMediNews Forum - Medical Forum for All</title>
<meta name="revisit-after" content="1 day" />
<meta name="description" content="All-in-one medical foum for the public, health professionals and students. Get latest update on health-related issues. Great place for health professionals to interact and share their knowledge and experience. You may advertise your health-related sites and products in this forum for free." />
<meta name="keywords" content="medicine, public, issue, forum, medical, health, doctor, information, eMediNews, nursing, paramedicine, paramedic, biomedical, expert, advertise, product, medical school, pharmacy, nurse, question, answer, professional" />
<meta name="robots" content="index, follow" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta name="author" content="Dr. Teoh KA" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="en" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/print.css?fin11" media="print" />
<link rel="help" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&action=help" target="_blank" />
<link rel="search" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&action=search" />
<link rel="contents" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&" />
<link rel="alternate" type="application/rss+xml" title="eMediNews - RSS" href="http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&type=rss;action=.xml" />
<link rev="made" href="admin@emedinews.com" />
<script language="JavaScript" type="text/javascript" src="http://emedinews.com/Themes/default/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://emedinews.com/Themes/default";
var smf_images_url = "http://emedinews.com/Themes/default/images";
var smf_scripturl = "http://emedinews.com/index.php?PHPSESSID=2683147b7079de298d63feb97f336e28&";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
// ]]></script>
|
Still there are errors.... http://validator.w3.org/check?uri=www.emedinews.com
|
|
|
|
04-08-2007, 03:33 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
|
You have 3 types of remaining issues:
1) In URLs, you cannot just use a &. Instead, you must use &
2) Some of your <center> tags are not closed by </center> tags in accordance with proper nesting.
3) On a script include, you need to indicate the type attribute
. For example,
HTML Code:
type="text/javascript"
|
|
|
|
04-08-2007, 05:55 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
|
<center></center> Shouldn't even exist in a document that is declared as XHTML
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
04-08-2007, 06:19 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
|
remove the language attribute from the script element open tags as it was deprecated in HTML4
Remove the superfluous comment tags, pointless having them around a space.
<script language="JavaScript" type="text/javascript"> <!-- // --><![CDATA[
replace all the & with the HTML entity as pointed out by Jeremy.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|
|
|
|
04-08-2007, 11:11 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 132
|
This is what I get from validation
http://validator.w3.org/check?uri=www.emedinews.com
This page is not Valid XHTML 1.0 Transitional!
Below are the results of checking this document for XML well-formedness and validity. - Error Line 71 column 106: required attribute "type" not specified....ertiser.dbm?pid=58943&bid=136316"></script> The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
✉
- Warning Line 159 column 99: cannot generate system identifier for general entity "zs"....ite.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"> An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (
. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Entity references start with an ampersand (&) and end with a semicolon ( . If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.
If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
✉
- Error Line 159 column 99: general entity "zs" not defined and no default entity....ite.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"> This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
✉
- Warning Line 159 column 101: reference not terminated by REFC delimiter....e.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"></ If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
✉
- Warning Line 159 column 101: reference to external entity in attribute value....e.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"></ This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.
✉
- Error Line 159 column 101: reference to entity "zs" for which no system identifier could be generated....e.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"></ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
✉
- Info Line 159 column 98: entity was defined here....rite.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"
- Warning Line 160 column 91: cannot generate system identifier for general entity "afsid"....mmerce/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite. ✉
- Error Line 160 column 91: general entity "afsid" not defined and no default entity....mmerce/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite. ✉
- Warning Line 160 column 96: reference not terminated by REFC delimiter....e/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite.com/m ✉
- Warning Line 160 column 96: reference to external entity in attribute value....e/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite.com/m ✉
- Error Line 160 column 96: reference to entity "afsid" for which no system identifier could be generated....e/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite.com/m ✉
- Info Line 160 column 90: entity was defined here....ommerce/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite
- Warning Line 875 column 101: reference not terminated by REFC delimiter....e.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"></ ✉
- Warning Line 875 column 101: reference to external entity in attribute value....e.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"></ ✉
- Error Line 875 column 101: reference to entity "zs" for which no system identifier could be generated....e.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"></ ✉
- Info Line 159 column 98: entity was defined here....rite.com/mb/text_group.php?sid=303851&zs=3732385f3930" type="text/javascript"
- Warning Line 876 column 96: reference not terminated by REFC delimiter....e/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite.com/m ✉
- Warning Line 876 column 96: reference to external entity in attribute value....e/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite.com/m ✉
- Error Line 876 column 96: reference to entity "afsid" for which no system identifier could be generated....e/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite.com/m ✉
- Info Line 160 column 90: entity was defined here....ommerce/purchase_form.php?opid=303851&afsid=1"><img src="http://files.adbrite
Please advise. I do not understand the technical language as I am a medical doctor. Thank you.
Last edited by kenang82; 04-08-2007 at 11:14 AM..
|
|
|
|
04-08-2007, 12:36 PM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 905
Name: Travel Agent
|
Why in the hell do you keep moving the Title tag to the bottom??? If you want our help, stop screaming HELP ME!...HELP ME!... and copy / paste this into the code -- DO NOT CHANGE ANYTHING!
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>eMediNews - Medical Forum for All - Index</title>
<meta name="revisit-after" content="1 day" />
<meta name="description" content="All-in-one medical foum for the public, health professionals and students. Get latest update on health-related issues. Great place for health professionals to interact and share their knowledge and experience. You may advertise your health-related sites and products in this forum for free." />
<meta name="keywords" content="medicine, public, issue, forum, medical, health, doctor, information, eMediNews, nursing, paramedicine, paramedic, biomedical, expert, advertise, product, medical school, pharmacy, nurse, question, answer, professional" />
<meta name="robots" content="index, follow" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta name="author" content="Dr. Teoh KA" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/print.css?fin11" media="print" />
<link rel="help" />
<link rel="alternate" type="application/rss+xml" title="eMediNews - RSS" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&PHPSESSID=2683147b7079de298d63feb97f336e28&type=rss;action=.xml" />
<link rev="made" href="admin@emedinews.com" />
<script language="JavaScript" type="text/javascript" src="http://emedinews.com/Themes/default/script.js?fin11" />
</script>
<script language="JavaScript" type="text/javascript">
<!-- // --><![CDATA[
var smf_theme_url = "http://emedinews.com/Themes/default";
var smf_images_url = "http://emedinews.com/Themes/default/images";
var smf_scripturl = "http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&PHPSESSID=2683147b7079de298d63feb97f336e28&";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
// ]]>
</script>
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/print.css?fin11" media="print" />
<link rel="help" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&action=help" target="_blank" />
<link rel="search" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&action=search" />
<link rel="contents" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&" />
<link rel="alternate" type="application/rss+xml" title="eMediNews - Medical Forum for All - RSS" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&type=rss;action=.xml" />
<script language="JavaScript" type="text/javascript" />
<!-- // --><![CDATA[
var current_header = false;
function shrinkHeader(mode)
{
document.cookie = "upshrink=" + (mode ? 1 : 0);
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]>
</script>
<script language="JavaScript" type="text/javascript" />
<!-- // --><![CDATA[
var current_header_ic = false;
function shrinkHeaderIC(mode)
{
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]>
</script></head>
|
|
|
|
04-08-2007, 01:06 PM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 132
|
Quote:
Originally Posted by travelagent
Why in the hell do you keep moving the Title tag to the bottom??? If you want our help, stop screaming HELP ME!...HELP ME!... and copy / paste this into the code -- DO NOT CHANGE ANYTHING!
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>eMediNews - Medical Forum for All - Index</title>
<meta name="revisit-after" content="1 day" />
<meta name="description" content="All-in-one medical foum for the public, health professionals and students. Get latest update on health-related issues. Great place for health professionals to interact and share their knowledge and experience. You may advertise your health-related sites and products in this forum for free." />
<meta name="keywords" content="medicine, public, issue, forum, medical, health, doctor, information, eMediNews, nursing, paramedicine, paramedic, biomedical, expert, advertise, product, medical school, pharmacy, nurse, question, answer, professional" />
<meta name="robots" content="index, follow" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta name="author" content="Dr. Teoh KA" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/print.css?fin11" media="print" />
<link rel="help" />
<link rel="alternate" type="application/rss+xml" title="eMediNews - RSS" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&PHPSESSID=2683147b7079de298d63feb97f336e28&type=rss;action=.xml" />
<link rev="made" href="admin@emedinews.com" />
<script language="JavaScript" type="text/javascript" src="http://emedinews.com/Themes/default/script.js?fin11" />
</script>
<script language="JavaScript" type="text/javascript">
<!-- // --><![CDATA[
var smf_theme_url = "http://emedinews.com/Themes/default";
var smf_images_url = "http://emedinews.com/Themes/default/images";
var smf_scripturl = "http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&PHPSESSID=2683147b7079de298d63feb97f336e28&";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
// ]]>
</script>
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="http://emedinews.com/Themes/default/print.css?fin11" media="print" />
<link rel="help" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&action=help" target="_blank" />
<link rel="search" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&action=search" />
<link rel="contents" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&" />
<link rel="alternate" type="application/rss+xml" title="eMediNews - Medical Forum for All - RSS" href="http://emedinews.com/index.php?PHPSESSID=d2f042c9214723c57db165565f0e2db9&type=rss;action=.xml" />
<script language="JavaScript" type="text/javascript" />
<!-- // --><![CDATA[
var current_header = false;
function shrinkHeader(mode)
{
document.cookie = "upshrink=" + (mode ? 1 : 0);
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]>
</script>
<script language="JavaScript" type="text/javascript" />
<!-- // --><![CDATA[
var current_header_ic = false;
function shrinkHeaderIC(mode)
{
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]>
</script></head>
|
I didn't move the titile tag. It was already there when the forum is installed. I tried copy ur code there but errors occurs. Page cant load.
Someone ask me to remove the PHPSESSID codes as it will confuse search engine. What do you think?
Thanks for your help.
|
|
|
|
04-08-2007, 02:11 PM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 905
Name: Travel Agent
|
Quote:
Originally Posted by kenang82
I didn't move the titile tag. It was already there when the forum is installed. I tried copy ur code there but errors occurs. Page cant load.
Someone ask me to remove the PHPSESSID codes as it will confuse search engine. What do you think?
Thanks for your help.
|
chrishirst gave you excellent advice on what to remove; the forum loads just fine.
|
|
|
|
04-08-2007, 07:22 PM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 132
|
Quote:
Originally Posted by travelagent
chrishirst gave you excellent advice on what to remove; the forum loads just fine.
|
I am sorry, but I really do not understand the technical language. I will appreciate if you can show me which code to remove. Thanks
|
|
|
|
04-08-2007, 07:39 PM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 905
Name: Travel Agent
|
I don't see why you're having such a hard time with this -- if you go back to the post from chrishirst, he BOLDED what you need to remove from the code.
|
|
|
|
04-09-2007, 01:53 AM
|
Re: Where to inser <head></head>? Please advise
|
Posts: 132
|
Problem solved!
Thanks to all members who helped me. Special thanks to member ADAM Web Design who guided me through all the way.
Thanks!
|
|
|
|
|
« Reply to Where to inser <head></head>? Please advise
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|