div里面的<h1></h1>和head里面的<title></title>的区别是什么啊?
phpcn_u224
phpcn_u224 2016-12-21 15:45:16
0
2
1187

如题

phpcn_u224
phpcn_u224

reply all(2)
数据分析师

What is the difference between <h1></h1> in div and <title></title> in head? - PHP Chinese Website Q&A - <h1></h1> in div What is the difference between <title></title> in the head? - PHP Chinese website Q&A

Take a look and learn.

阿神

h1元素可以定义网页中的标题,一个页面可以有多个h1元素,元素位置通常在body元素里面。如网页中有篇文章,文章标题为“菜鸟逆袭之路”

<h1>菜鸟逆袭之路</h1>

title元素定义网页的标题,注意是整个网页,一个网页有且只有一个title元素,title 元素位于head元素中,<head> 标签中唯一要求包含的东西。比如有个页面叫“php中文网首页”

<title>php中文网首页</title>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!