Some time ago, when optimizing the front-end code of the website, we found that the title label content in the head was displayed with a line break. During page development, we used the Master page.
BUG effect:
<Title> City Bank-blog Park </title>
The following methods are not valid after testing.
1. Re-layout the title tag in html (Automatic Code formatting may cause line breaks)
2. Delete the title tag on the master page and define the title in the nested page. (The nested title will overwrite the title on the master page)
3. Delete the title tag of the master page and nested page, and use the back-end code to generate the title
Page. Title = "City Bank-blog Garden"; Master. Page. Title = "City Bank-blog Garden ";
4. Set the Page command Title attribute
<% @ Page Title = "City Bank-blog Park" Language = "C #" MasterPageFile = "~ /Zq/Combat. Master "AutoEventWireup =" true "CodeBehind =" Article. aspx. cs "%>
Solution:
Hide the automatically generated title tag on the master page, and then add the title using code or tag on the nested page.