Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1928582
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:59:47+00:00 2026-05-17T06:59:47+00:00

I wrote a php app using php+smarty. When I view the web source code

  • 0

alt text

alt text

I wrote a php app using php+smarty.

When I view the web source code in firebug, I find that link tag and script tag get under the body tag. But it should be under the head tag.

And there are some space below body tag.

And there is blank space on my top of my web page.

What is the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:59:47+00:00Added an answer on May 17, 2026 at 6:59 am

    You’ve got some stray text content inside the <head>, before the <link> tag. The browser sees the text and decides this means you’re starting the main document body but have forgotten to include the <body> tag.

    This is actually valid—if inadvisable—in HTML4: the <head> end-tag and <body> start-tag are both optional. This is how you can have just <html><head><title>x</title>Hello! as a valid HTML document. But it’s not permissible in XHTML, so if you validate your document you should get a “character data is not allowed here” error at the point the stray text occurs.

    The browser then parses the rest of the document as body content, putting the <link> inside the body (which is not valid, but which is nonetheless commonplace). It ignores the real <body> when that comes along because it already has a body.

    If you can’t see the stray text, perhaps it’s an invisible character like U+00A0 No-break space   or—most likely for Chinese documents—U+3000 Ideographic space  , which you may get when you press space in some input method modes. These characters won’t be visible, but they’re not ‘ignorable whitespace’ like a normal U+0020 Space or newline, so they trigger ‘text content’ processing and force the <body>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a small app that turns out to be using a lot of
I have an app that runs on PHP 5.3 which stores passwords hashed using
I want to parse the link: http://dizli.com/dizli/db.html using php. But when i wrote the
I wrote a PHP code like this $site=http://www.google.com; $content = file_get_content($site); echo $content; But
I wrote a small PHP application several months ago that uses the WordPress XMLRPC
I wrote a small PHP application that I'd like to distribute. I'm looking for
I have a start of a webapp that I wrote without using the Object
I wrote a python script that rotates an image 90 degrees. I am including
I'm using AMFPHP, and wrote a small function in php to post in facebook
OK, so I wrote an app using CodeIgniter 1.7.3 and everything was dandy. then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.