Why is there a blank dot in the front of the declaration in the html file at the top of the page?

Source: Internet
Author: User
Why is there a blank dot on the top of the page in front of the declaration in the html file! Urgent! Urgent! Urgent! Urgent! Solution


Reply to discussion (solution)

View the template or php file

Blank

Most of them are BOM headers.





...

Reply: 16:29:21
Most of them are BOM headers.


Solution

Most of them are BOM headers.




Solution

You can save the code as utf8 without dom.
However, I think it is even more likely that an html tag has not been closed, because this situation has also been encountered before. we recommend that you check whether all tags match and close it.

View the template or php file

Blank








<? Php if (is_home () {<br/> bloginfo ('name'); echo "-"; bloginfo ('Description '); <br/>} elseif (is_category () {<br/> single_cat_title (); echo "-"; bloginfo ('name '); <br/>} elseif (is_single () | is_page () {<br/> single_post_title (); <br/>} elseif (is_search ()) {<br/> echo "search result"; echo "-"; bloginfo ('name'); <br/>} elseif (is_404 ()) {<br/> echo 'page not found! '; <Br/>}else {<br/> wp_title ('', true); <br/>}?>

You can save the code as utf8 without dom.
However, I think it is even more likely that an html tag has not been closed, because this situation has also been encountered before. we recommend that you check whether all tags match and close it.



Saved as utf8 without dom. tags are matched and disabled.

I remember that I encountered this problem and solved it. But ?? I cannot remember why...

Dizzy above the words have not been completed, accidentally ctrl + enter.

Supplement:

LZ: Check whether the body tag is configured with padding.

Does the first element set margin?

If it doesn't work, right-click firefox to view the elements and check the box model to find out who made the gap.

$s = file_get_contents('http://www.1718jc.com/', false, null, 0, 10);echo bin2hex($s);
Efbbbf efbbbf203c2144

Isn't this the BOM header? Two more!

If the bom header is affected, open the homepage file and remove the bom header. if not, leave the contact information

Yes, we have encountered this problem before. it is very worrying to use Dreamweaver to save it and remove the bom header option.

Create a new file, copy the code, save it, and replace the file.

If none of the above methods are valid, try my method:

Open the webpage source code in a text editor, Ctrl + F search for whether the source code contains "'", and then remove and save it.

I also encountered this problem today. after an hour of hard work, I had no problem checking the code. I finally wrote it out with this quotation mark accidentally, I hope this will be helpful in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.