h1和title之间的区别 [英] difference between h1 and title

查看:87
本文介绍了h1和title之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


虽然我还没有完成我拯救世界的精彩教程,但我确实这样做了一个简单的问题。

有一个简单的问题。 >

h1和标题标签之间的区别是什么?


对我而言似乎两者都可以互换使用。对于

示例,我网站上的文章(andkon.com)与

h1具有相同的标题。评论?

Hello,

While I haven''t finished my wonderful tutorial to save the world, I do
have a simple question.

What''s the difference between h1 and the title tag?

For me it seems as though both can be used interchangebly. For
example, the articles on my site (andkon.com) have the same title as
h1. Comments?

推荐答案

MozillaCensorsMe写道:
MozillaCensorsMe wrote:
h1和标题标签之间的区别是什么?
What''s the difference between h1 and the title tag?




标题适用于整个文档,而h1是文档中主要细分的标题。例如,考虑一个

的简历。适当的标题是John Doe的简历,而一些

可能h1'将是目标, "经验,"和参考文献。


就浏览器如何使用它们而言,图形浏览器倾向于将b / b
显示为标题的一部分。文本出现在标题栏中。并且,

图形和文本浏览器在显示存储的

收藏夹或书签时经常使用它。


sherm -



The title applies to the document as a whole, and h1 to the titles of
the major subdivisions within the document. For example, consider a
resume. An appropriate title would be "John Doe''s Resume", and some
likely h1''s would be "Objective," "Experience," and "References."

In terms of how they''re used by browsers, graphical browsers tend to
display the title as part of the text appearing in the title bar. And,
both graphical and text browsers often use it when displaying stored
favorites or bookmarks.

sherm--


Sherm Pendley< sp ******** @ dot-app.org>写在

新闻:d9 ******************* @ news1.news.adelphia.net:
Sherm Pendley <sp********@dot-app.org> wrote in
news:d9*******************@news1.news.adelphia.net :
MozillaCensorsMe写道:
MozillaCensorsMe wrote:
h1和标题标签有什么区别?
What''s the difference between h1 and the title tag?



标题适用于文件一个整体,以及h1到文档中主要细分的标题。例如,考虑一下
简历。适当的标题是John Doe的简历,并且一些可能的h1'将是目标,并且"经验,"就浏览器如何使用它们而言,图形浏览器倾向于将标题显示为标题栏中出现的文本的一部分。并且,
图形和文本浏览器在显示存储的收藏夹或书签时经常使用它。



The title applies to the document as a whole, and h1 to the titles of
the major subdivisions within the document. For example, consider a
resume. An appropriate title would be "John Doe''s Resume", and some
likely h1''s would be "Objective," "Experience," and "References."

In terms of how they''re used by browsers, graphical browsers tend to
display the title as part of the text appearing in the title bar. And,
both graphical and text browsers often use it when displaying stored
favorites or bookmarks.




另一种说法是<<< ;> ;标题> element是文档'

* metadata *的一部分,而< H1>元素是是文件'*内容*的一部分。元数据

字面意思是关于数据的数据。在Web上下文中,它表示可以帮助人们定位或分类文档的那种数据; 这个文件是什么

叫?例如,是一个可以通过元数据回答的问题。


事实证明,在大多数情况下,网页的第一级标题将基本上是
重复它的标题,原因很简单,任何文件

'足够大,有一个以上的第一级标题应该在

超文本环境中,可能被分解成多个连接在一起的较小的

文档。但是标题和

标题所扮演的角色仍然不同,即使同一个演员可能正在扮演他们的角色。



Another way to put it is that the <title> element is part of the document''s
*metadata*, whereas an <H1> is part of the document''s *content*. Metadata
is literally "data about data" and in the Web context it means the sort of
data that helps one locate or categorize a document; "what is this document
called?" is, for example, a question answerable by metadata.

As it turns out, in most cases the first-level heading of a Web page will
essentially duplicate its title, for the simple reason that any document
that''s big enough to have more than one first-level heading should, in a
hypertext environment, probably be broken up into multiple smaller
documents that are linked together. But the roles played by the title and
the heading are still different, even though the same actor may be playing
them.


在文章< 39 ************************ @ posting.google.com>在

comp.infosystems。 www.authoring.html ,MozillaCensorsMe

< mo ************** @ yahoo.com>写道:
In article <39************************@posting.google.com> in
comp.infosystems.www.authoring.html, MozillaCensorsMe
<mo**************@yahoo.com> wrote:
h1和标题标签有什么区别?

对我来说,似乎两者都可以互换使用。
What''s the difference between h1 and the title tag?

For me it seems as though both can be used interchangebly.



尝试交换它们并验证您的文档。你会很快就会看到



并且考虑你的屏幕名称是否会让你被认真对待




-

Stan Brown,Oak Road Systems,美国纽约州科特兰县
http://OakRoadSystems.com/

HTML 4.01规范: http://www.w3.org/TR/html401/

验证人: http://validator.w3.org/

CSS 2 spec : http://www.w3.org/TR/REC-CSS2/

2.1更改: http ://www.w3.org/TR/CSS21/changes.html

验证器: http: //jigsaw.w3.org/css-validator/



Try interchanging them and validating your document. You will
quickly see the difference.

And think about whether your screen name will cause you to be taken
seriously.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/


这篇关于h1和title之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆