标题未显示在括号中的铬标签上

时间:2017-11-27 04:57:02

标签: tabs page-title

HTML新手,在lynda.com上学习。在其中一个练习中,我输入以下内容:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="A page for exploring HTML 
  documents">
<title>Basic HTML document</title>
</head>
</html> 

标题未显示在Chrome浏览器标签上,而不是“基本HTML文档”,它显示“doctype.htm”。任何人都可以告诉我为什么?

1 个答案:

答案 0 :(得分:0)

根据您的浏览器,您将看到标题。

Mac上的Safari示例,尝试添加书签以查看当前名称:

enter image description here

Firefox V57中的示例,名称是标签:

enter image description here

所以HTML代码是正确的。它是浏览器根据浏览器中的设置选择显示的内容。