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

高洛峰
Release: 2017-02-20 12:50:23
Original
2074 people have browsed it

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

 
 <title>324234</title>
 
Copy after login

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; }
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template