473,503 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

headings and footers

It seems to me that headings (<h1>, et al.) should 'cover' all the text
beneath them, until the next heading, or until something indicates that
the coverage (scope) of the heading has ended. (HTML has no mechanism for
the latter.) Moreover, that's how (e.g.) Google uses them.[1] So it
seems to me one of the following should be true (none of them *is* true
(unless maybe number (3) is -- does anyone know for certain?)):

(1) There is a mechanism for ending the scope of a heading,

(2) Authors should put a new heading above the footer (e.g.,
<address>-type info) of their pages to prevent that info from being
counted as part of the previous header's scope.

(3) Authors should be allowed to use <Hn/> as a means of specifying that
the previous <Hn>'s scope has ended, and (e.g.) Google should understand
the page that way.

Thoughts?

Footnote:
[1] I have a small phonograhic-copyright symbol as a GIF in the footer of
one of my pages -- http://www.math.wustl.edu/~msh210/recoring.html -- and
Google Image Search, when it shows that image in a results list -- as in
http://google.com/images?q=msh210 -- shows the content of the <h1> above
it as the description of the image. (Why it doesn't show the alt text, I
don't know.)

Michael Hamm It's not who you know, it's whom.
AM, Math, Wash. U. St. Louis Joan Rivers
ms****@math.wustl.edu Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html
Feb 2 '06 #1
3 1175
Michael Hamm <ms****@math.wustl.edu> wrote:
It seems to me that headings (<h1>, et al.) should 'cover' all the text
beneath them, until the next heading,
Only if that header is of equal or greater weight, an <h2> beneath an
<h1> does not "end" the scope of the <h1>.
or until something indicates that
the coverage (scope) of the heading has ended. (HTML has no mechanism for
the latter.)
Correct.
(2) Authors should put a new heading above the footer (e.g.,
<address>-type info) of their pages to prevent that info from being
counted as part of the previous header's scope.
HTML was originally devised as a markup language for basic scientific
documents, it's usage for other purposes meant that content that doesn't
belong on a page is now being incorporated on many pages. Examples are
side bars with non page unique content, navigation etc. If this type of
"content pollution" precedes the page content's <h1> in the source then
the document outline remains intact.

If however these sections are coded after the page content's <h1> then
to preserve a correct document outline these sections ought to be
preceded by their own <h1>s.
(3) Authors should be allowed to use <Hn/> as a means of specifying that
the previous <Hn>'s scope has ended, and (e.g.) Google should understand
the page that way.
HTML 4 and thereby XHTML 1.x are limited to the current limited
mechanism.

IIRC both the XHTML 2 and the HTML5 proposals have redefined headers to
facilitate what is often referred to as "application" usage that web
pages are now widely used for.
Footnote:
[1] I have a small phonograhic-copyright symbol as a GIF in the footer of
one of my pages -- http://www.math.wustl.edu/~msh210/recoring.html -- and
Google Image Search, when it shows that image in a results list -- as in
http://google.com/images?q=msh210 -- shows the content of the <h1> above
it as the description of the image. (Why it doesn't show the alt text, I
don't know.)


Google Image Search often ignores alt content. It attempts to index the
web as it is. For it to return relevant images to users based on a text
input it has to look at the surrounding text given that most of the
images on the world wild web have bad or no alt content.

--
Spartanicus
Feb 2 '06 #2
In article <Pi*******************************@ascc.artsci.wus tl.edu>,
Michael Hamm <ms****@math.wustl.edu> wrote:
It seems to me that headings (<h1>, et al.) should 'cover' all the text
beneath them, until the next heading, or until something indicates that
the coverage (scope) of the heading has ended. (HTML has no mechanism for
the latter.) Moreover, that's how (e.g.) Google uses them.[1] So it
seems to me one of the following should be true (none of them *is* true
(unless maybe number (3) is -- does anyone know for certain?)): <snip> Thoughts?


If what I think you mean is that the scope of a H* element should extend
throughout all elements beneath it until another H* and give weight to
those elements higher than the next lower H*. Is that correct?
Markup is not programming and the scope rules are very different.
Perhaps search engines see it differently, but right now, </H*> ends
that elements influence certainly as far as browsers are concerned. A SE
may very well give weight to the H* followup or not. As the majority of
sites are marked up illogically, what would be gained?
But then I could be talking out of my hat and will learn from further
discussion.

leo

--
<http://web0.greatbasin.net/~leo/>
Feb 3 '06 #3
Michael Hamm wrote:
It seems to me that headings (<h1>, et al.) should 'cover' all the text
beneath them, until the next heading, or until something indicates that
the coverage (scope) of the heading has ended. (HTML has no mechanism for
the latter.) Moreover, that's how (e.g.) Google uses them.[1] So it
seems to me one of the following should be true (none of them *is* true
(unless maybe number (3) is -- does anyone know for certain?)):

(1) There is a mechanism for ending the scope of a heading,

(2) Authors should put a new heading above the footer (e.g.,
<address>-type info) of their pages to prevent that info from being
counted as part of the previous header's scope.

(3) Authors should be allowed to use <Hn/> as a means of specifying that
the previous <Hn>'s scope has ended, and (e.g.) Google should understand
the page that way.


I have on occasion tried markup along the lines of

<div class="section">
<h2>First Section Heading</h2>
<p>First section content</p>
<div class="subsection">
<h3>Subsection heading</h3>
<p>Subsection content</p>
</div>
<p>More first section content</p>
</div>
<div class="section">
<h2>Second section heading</h2>
<p>Second section content</p>
</div>

This was an attempt, among other things, to make it easier to identify
which heading applied to what. It also helped simplify styling with CSS.

What Google makes of it I have no idea.

Andrew
Feb 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
2693
by: Jeff Thies | last post by:
I'm working on yet another online editor, this allows non html savy people to add "blocks" that may contain paragraphs, headings, lists and images to the editable part of a template. The editable...
2
6205
by: Rupe | last post by:
Hi CSS gurus! I have an embarassing problem. I am a php programmer and I try to expound the advantages of css on the php newsgroups. However, after telling someone that they should use css...
3
4146
by: Paula | last post by:
I need to do a summary using a crosstab query. The data has a Date field (Not named "Date"). I can do the Row Heading and Value but am having trouble with the Column Heading. The summary Columns...
7
3556
by: Ellen Manning | last post by:
I've got an A2K report showing students and their costs. Student info is in the main report and costs are in a subreport for each student. The user inputs the program desired then only those...
3
2572
by: E.Doxtator | last post by:
Hi All I've been using the pyRTF module to generate some documents that I need for work. In general, the module is good, and pretty simple to use. However, I am running into a problem with...
22
2475
by: Spartanicus | last post by:
I wrote an article on HTML headings: http://codewallop.110mb.com/goodpractice/headingology.htm -- Spartanicus
0
1267
by: petejones | last post by:
I have a directory of PDF files which contain Headings/Sub Headings and Page Numbers. I wish to write a script to open the PDF, read the Headings and any sub headings and write them out to a file....
4
2803
by: ppuniversal | last post by:
Hi, I am developing an application in ASP .NET where I have to generate a Header and a Footer on my web pages. The issue is that, these headers and footers need to be dynamically placed on the page....
2
1507
by: neovantage | last post by:
Hey, i have found a code which generate headings at run time. here is my code which generate headings at run time <img src="generate-headings.php?w=125&amp;hd=Code" /> $im =...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.