多个< h?>页面上的层次结构 [英] Multiple <h?> hierarchies on a page

查看:84
本文介绍了多个< h?>页面上的层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网站上的不同页面的标题级别可能会有所不同(
下降)。一个短页面可以仅具有< h1>或< h1>和< h2>。另一个,

详细页面可能会一直到< h6> ;.


也许该网站的页面也会显示常见的侧边栏拥有

层次结构,例如In the News块分为两个或三个部分

(Nation,World,Metro)每个两个或三个短片,每个片段结束

with完整故事的链接。


什么标题标签适用于新闻报道及其副标题?我想到的一个理论是,如果一个页面被分成几个

部分,每个部分都保证它自己的层次结构。每个层次结构从哪里开始,

虽然?我想到了< h1>,但即使在分页上,

的主标题顶部确实包含了页面上的所有内容。也许< h2>适用于新闻报道的

标题。


但是假设这是一个小的,非等级的网站,并且随着它的扩展,它被修改为将它分成几个部分,每个部分由它自己的< h2>

标题显示在网站范围内的页面上< h1>标题。但是,如果发生这种情况,我会使用< h2>对于我的侧边栏的顶部标题,导航

酒吧等等,我应该全球降级

我网站上所有侧边栏的标题吗? />

作为旁注,CSS会处理不同的渲染方法,

比如说,< h3> s在侧边栏中与< h3> s在主页内容等。


-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。

解决方案

2004年1月29日星期四10:45:53 -0500,Harlan Messinger

< h。********* @ comcast.net>写道:

什么标题标签适用于在新闻中及其副标题?我想到的一个理论是,如果一个页面被分成几个部分,每个部分都保证自己的层次结构。每个等级都在哪里开始,
虽然?我想到了< h1>,但即使在分页上,顶部的主标题
真正包含了页面上的所有内容。也许< h2>将适用于新闻报道标题。




我的经验法则是这样 - 它看起来像什么样的样式?


你的主要标题是页面是h1。然后你会在页面上有几个部分

。例如,网站导航,主要内容,侧边栏。这些全部

得到h2'。然后将这些部分分成h3等等。


这在文本浏览器中提供了一个非常统一和结构化的外观,并且

你可以设置它疯狂用CSS来解决问题。


忘了一个...


2004年1月29日星期四10:45:53 -0500,Harlan Messinger

< h。********* @ comcast.net>写道:

...
如果发生这种情况,我使用了< h2>对于我的侧边栏的顶部标题,
nav
栏等等,我应该全球降级到我网站上所有侧边栏的标题吗?




是的,这就是我要做的。提供复合材料上的h2

页面现在是新页面上的主要识别标题。


Harlan Messinger写道:


也许该网站的页面还会显示带有自己的
层次结构的常用侧边栏,例如In the News等。块分为两个或三个部分(Nation,World,Metro),每个部分包含两个或三个短片,每个片段都以完整故事链接结尾。

什么标题标签适用于新闻报道和它的
副标题?




如果侧边栏是导航,链接到网站的其他页面/部分
网站,我不要以为它应该得到任何标题。标题是

分割文档的内容,而不是突出显示侧边栏。

只有页面是关于新闻,或者是链接页面,它应该得到a

标题。


-

Brian(按照我的地址中的说明给我发电子邮件)
http://www.tsmchughs.com/


Different pages on a web site can vary in the level of header to which they
descend. One short page may have only <h1>, or <h1> and <h2>. Another,
detailed page, might get all the way down to <h6>.

Maybe the site''s page also display common sidebars with their own
hierarchies, such as "In the News" block divided into two or three sections
("Nation", "World", "Metro") of two or three short clips each, each ending
with a link to the full story.

What heading tags are applicable to "In the News" and its subheadings? A
theory that has come to my mind is that if a page is divided into several
sections, each warrants its own hierarchy. Where does each hierarchy start,
though? I thought of <h1>, but even on a divided page, the main heading at
the top really encompasses everything on the page. So maybe <h2> would be
applicable to the "In the News" heading.

But suppose this starts as a small, unhierarchical site, and as it expands,
it is revised to divide it into sections, each identified by its own <h2>
heading that appears on its pages underneath the site-wide <h1> heading. But
if that happens, and I had used <h2> for the top heading of my sidebars, nav
bars, and the like, should I globally demote by on elevel the headings in
all the sidebars across my site?

As a side note, CSS would take care of different rendering approaches for,
say, <h3>s in sidebars versus <h3>s in the main page content, etc.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.

解决方案

On Thu, 29 Jan 2004 10:45:53 -0500, Harlan Messinger
<h.*********@comcast.net> wrote:

What heading tags are applicable to "In the News" and its subheadings? A
theory that has come to my mind is that if a page is divided into several
sections, each warrants its own hierarchy. Where does each hierarchy
start,
though? I thought of <h1>, but even on a divided page, the main heading
at
the top really encompasses everything on the page. So maybe <h2> would be
applicable to the "In the News" heading.



My rule of thumb here is this - what will it look like unstyled?

Your main heading on the page is h1. Then you''ll have several sections of
the page. For example, site navigation, main content, sidebar. These all
get h2''s. Then break these sections into h3 and so on.

This provides a really uniform and structured look in a text browser, and
you can style it up crazy-go-nuts with CSS.


Forgot one...

On Thu, 29 Jan 2004 10:45:53 -0500, Harlan Messinger
<h.*********@comcast.net> wrote:

...
if that happens, and I had used <h2> for the top heading of my sidebars,
nav
bars, and the like, should I globally demote by on elevel the headings in
all the sidebars across my site?



Yep, that''s what I would do. Provided what was the h2 on the composite
page is now the main identifying heading on the new page.


Harlan Messinger wrote:


Maybe the site''s page also display common sidebars with their own
hierarchies, such as "In the News" block divided into two or three
sections ("Nation", "World", "Metro") of two or three short clips
each, each ending with a link to the full story.

What heading tags are applicable to "In the News" and its
subheadings?



If the sidebar is navigation, with links to other pages/sections of
the site, I don''t think it should get any heading. Headings are to
divide up the content of the document, not to highlight the sidebar.
Only if the page is about news, or is a links page, should it get a
heading.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/


这篇关于多个&lt; h?&gt;页面上的层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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