CodeIgniter Forums
link tag is coming into the body section - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: link tag is coming into the body section (/showthread.php?tid=24804)



link tag is coming into the body section - El Forum - 11-20-2009

[eluser]Unknown[/eluser]
hi
this is my code b4

Code:
<head>
[removed][removed]
<link href="<?=$burl?>css/my1.css" rel="stylesheet" type="text/css" />
</head>

and when the page loads
the above code goes into the body tag.
i m using firebug here how it showed me

Code:
<head>
</head>
<body>

[removed]
[removed]
<link type="text/css" rel="stylesheet" href="/fyp_soc/css/my1.css">
</link>



link tag is coming into the body section - El Forum - 11-20-2009

[eluser]Maglok[/eluser]
You use an out-of-the-box CI for this? And this is in your view I assume. It should not 'rewrite' your code for you, since it is basically html with some php tags sprinkled in. Mabye there is some kind of template stuff going on?


link tag is coming into the body section - El Forum - 11-27-2009

[eluser]markup2go[/eluser]
My guess is your html isn't valid... run it through the W3 validator and fix any errors first, then repost with your result.