SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast bobbobbobbob's Avatar
    Join Date
    Apr 2004
    Location
    bobbobbobbob
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with head

    I'm trying to have this page validate with XHTML 1.0 Transitional, and for some reason I keep getting the error: end tag for "head" which is not finished.

    It's the only error on the page, and I don't understand why it's there.

    I have a main document that starts the <head> tag, and then it includes a document with the following code.

    Code:
    <style type="text/css">
    
    <!--
    
    A:link { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#005EA2; text-decoration:none}
    
    A:visited { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#005EA2; text-decoration:none}
    
    A:hover {font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif;   color:#000000; text-decoration:none}
    
    .thirdlink A:link { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#ffffff; text-decoration:none; background-color: #005ea2;}
    
    .thirdlink A:visited { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#ffffff; text-decoration:none; background-color: #005ea2;}
    
    .thirdlink A:hover {font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif;   color: yellow; text-decoration:none; background-color: #005ea2;}
    
    .secondlink A:link { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#ffffff; font-size:14px; text-decoration:none}
    
    .secondlink A:visited { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#ffffff; text-decoration:none; font-size:14px;}
    
    .secondlink A:hover {  font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#FFF203; text-decoration:none; font-size:14px;}
    
    TD {font-family:Arial, Helvetica, sans-serif; font-size:90&#37;; color:#000000;}
    
    TD.Bold{font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif;  background-color:#FFFFFF;;}
    
    TD.Bold2{font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif;   background-color:#DFDFDF;}
    
    TD.Bold3{font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif;    background-color:#DFDFDF;}
    
    TD.Bold4{font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif;    color: #000000; background-color: #CCCCCC;}
    
    td.bwhite {font-weight:700; font-family:Verdana, Arial, Helvetica, sans-serif;    color:#ffffff; background-color: #005ea2;}
    
    td.bwhite2 {font-weight:700; font-family:Verdana, Arial, Helvetica, sans-serif;     color:#ffffff; background-color: #005ea2;}
    
    td.bwhite3 {font-family:Verdana, Arial, Helvetica, sans-serif;  color:#ffffff;  background-color:#005ea2;}
    
    td.bwhite4 {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:17px;  font-weight:500; color:#ffffff; background-color: #005ea2;}
    
    TD.white { color:#FFFFFF; }
    
    td.old2 { background-color: #d0cece; }
    
    td.graybg { background-color: #cccccc; }
    
    td.whitebg { background-color: #ffffff; }
    
    td.dfbg { background-color: #dfdfdf; }
    
    .awhite A:link { font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#ffffff; text-decoration:none; background-color: #005ea2;}
    
    .awhite A:visited {  font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#ffffff; text-decoration:none; background-color:#005ea2;}
    
    .awhite A:hover {font-weight:700; font-family:Geneva, Arial, Helvetica, sans-serif; color:#FFF203; text-decoration:none; background-color:#005ea2;}
    
    
    
    .txtarea {
    
     font-family:'trebuchet ms',helvetica,sans-serif;
       padding:0;
       border:solid #979797 1px;
    width: auto;
    
    font-size: 110%;
    }
    
    input.txtarea {
    
     font-family:'trebuchet ms',helvetica,sans-serif;
       padding:0;
       border:solid #979797 1px;
    width: auto;
    
    font-size: 110%;
    }
    
    
    
    input.select {
       border:solid #979797 1px;
    }
    input.txt1{
       color:#000000;
       font-family:'trebuchet ms',helvetica,sans-serif;
       padding:0;
        border:solid #979797 1px;
    
       
       }
       input.txt2{
       background-color:#cccccc;
       font-family:'trebuchet ms',helvetica,sans-serif;
       padding:0;
    
        border:solid #979797 1px;
       }
       td.tdtwo{
       font-size:19px;
       
       }
          td.top{
       color:#FFFFFF;
       font-weight:bold;
       
       }
    input.btn2{
       color:#005ea2;
       font-family:'trebuchet ms',helvetica,sans-serif;
    
       font-weight:bold;
       background-color:#dfdfdf;
       border:1px solid black;
    }
       
       input.btn4{
       color:#005ea2;
       font-family:'trebuchet ms',helvetica,sans-serif;
    font-size: 85%;
       font-weight:bold;
       background-color:#dfdfdf;
       border:1px solid black;}
    
       
    input.btnhov2{
       color:#000000;
       font-family:'trebuchet ms',helvetica,sans-serif;
    
       font-weight:bold;
       background-color:#dfdfdf;
       border:1px solid;
       border-color:#005ea2}
       
       
    input.btn3{
       color:#005ea2;
       font-family:'trebuchet ms',helvetica,sans-serif;
    	font-size:90%;
       font-weight:bold;
       background-color:#dfdfdf;
       border:1px solid;
       border-top-color:#000000;
       border-left-color:#000000;
       border-right-color:#000000;
       border-bottom-color:#000000;}
       
    input.btnhov3{
       color:#000000;
       font-family:'trebuchet ms',helvetica,sans-serif;
    
       font-weight:bold;
       background-color:#dfdfdf;
       border:1px solid;
       border-color:#005ea2}
       
    td.biggray{
       
       font-family:Arial, Helvetica, sans-serif; font-size:75%;
       font-size: 18px;
       color: #cccccc;
       font-weight:bold;
       background-color: #005EA2;
       }
    td.green{
    	color:#009900;
    	font-family:Arial, Helvetica, sans-serif; font-size:75%;
    	background-color: #dfdfdf;
    }
      td.dfbg { background-color: #dfdfdf; }
    td.red{
    	color: red;
    	font-family:Arial, Helvetica, sans-serif; font-size:75%;
    	background-color: #dfdfdf;
    }
    td.score{
    	color: black;
    	font-family:Arial, Helvetica, sans-serif; font-size:75%;
    	background-color: #e5e7e5;
    	font-size:24px;
    }
    
    -->
    
    </style>
    
    <script type="text/javaScript">
    
    <!--
    
    function MM_preloadImages() { //v3.0
    
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    
    }
    
    
    
    function MM_swapImgRestore() { //v3.0
    
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    
    }
    
    
    
    function MM_findObj(n, d) { //v4.01
    
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    
    }
    
    
    
    function MM_swapImage() { //v3.0
    
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    
    }
    
    //-->
    
    </script>
    </head>
    <body bgcolor="#e5e7e5" >
    <?
    
    			define('override_phpbb_root_path', 'phpBB2/'); // path to the phpBB2 folder, no beginning slash
    			include(override_phpbb_root_path . 'lb_login.php');
    ?>
    and then it just goes back to the main page.

    Is there a problem that I'm not seeing?

    Thanks,
    Zack

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Zack, do you have a link to the page in question?

  3. #3
    SitePoint Enthusiast bobbobbobbob's Avatar
    Join Date
    Apr 2004
    Location
    bobbobbobbob
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the link to the validation process.

    http://validator.w3.org/check?uri=ht...ne=1&verbose=1

    here is the link to the page.

    http://www.writeusastory.com/index225.php

    I used to not even have a doc type, and when I added one the style sheets got all messed up, too. Any idea why?

    Thanks a lot

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's because your use of a DOCTYPE is forcing the browsers to read the Web page the right way.

    Hold on a sec, while I take a deeper look at your code, ok?

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,035
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    unfinished tag

    Maybe "javascript" instead of "javaScript"?

  6. #6
    SitePoint Enthusiast bobbobbobbob's Avatar
    Join Date
    Apr 2004
    Location
    bobbobbobbob
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz View Post
    It's because your use of a DOCTYPE is forcing the browsers to read the Web page the right way.

    Hold on a sec, while I take a deeper look at your code, ok?
    Ok cool, thanks a lot.

    And Mittineague, thanks, but that wasn't it.

  7. #7
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, you're missing your <title></title> tags, which belong right underneath the opening <head> tag, along with your character encoding (which goes right underneath the TITLE, before anything else).

    You may also want to seriously consider moving your CSS and scripts to external files as well.

    As for character encoding, UTF-8 is preferred, but a lot of people like to use ISO-8859-1. Whichever you use, you MUST make sure it matches the encoding being sent via the HTTP header by your server.

  8. #8
    SitePoint Enthusiast bobbobbobbob's Avatar
    Join Date
    Apr 2004
    Location
    bobbobbobbob
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot for the help Dan, it validates perfectly now.

  9. #9
    Non-Member
    Join Date
    Feb 2007
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi.. question can you give info that CSS and javascript. how true that CSS and Javascript are not crawlable by the search engine?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •