Home >Web Front-end >CSS Tutorial >The title in the head is displayed in the body

The title in the head is displayed in the body

高洛峰
高洛峰Original
2017-02-20 12:50:232059browse

I encountered a problem today, that is, the content in the title will be displayed in the body

 
 <title>324234</title>
 

After searching online, it said that there is a problem with the encoding method. In this case, I checked my coding and found that there were no problems. So I started to investigate, and after removing the css style sheet, the title was no longer displayed. It seems there is something wrong with the style.

After investigation, I found that the previously written reset style is as follows.

 * { display: block; }

Then it seems that the browser default is display:none. Because title is also a label, it takes effect on css, so if you remove the display:block, it will display normally.

The title in the head is displayed in the body

For more related articles, the title in the head is displayed in the body, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn