473,790 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possibly OT - would like to have an element back

The elements MENU and DIR were in the HTML 2.0 spec, and disappeared in
4. I would like to have them back, they makes sense.

For example:
<menu>
<li>Home</li>
<li>Contact</li>
</menu>

Perhaps speech enabled user agents could react accordingly, perhaps say
"Navigation ", which would differentiate it from an ordinary list, like a
list of groceries [1]:
<ul>
<li>Milk</li>
<li>Bread</li>
<li>Eggs</li>
<li>Bacon</li>
</ul>

Search engines could probably benefit as well since they would know right
away where to start crawling. Probably make external stylesheets a
little easier, I know a lot of people use <div id="menu"><ul>. .., so it
might make an author's life a little less complicated.

I realize I can use these elements with a transitional Doctype, but I
prefer Strict.

Just my thoughts.

[1] I would also like to be able to use the caption element inside a ul,
eg:
<ul>
<caption>Laundr y List</caption>
<li>Soap</li>
</ul>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 23 '05 #1
8 1665
Adrienne wrote:

I would also like to be able to use the caption element inside a ul,
eg:
<ul>
<caption>Laundr y List</caption>


Caption is one element that has potential for multiple uses. Image
captions come to mind right off. Too bad the specs limit it to tables.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 23 '05 #2
Adrienne wrote:
<menu>
<li>Home</li>
<li>Contact</li>
</menu>
See <nl>...
<ul>
<caption>Laundr y List</caption>
<li>Soap</li>
</ul>


....and <label> in the current XHTML 2.0 draft.

http://www.w3.org/TR/xhtml2/mod-list.html#s_listmodule

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #3
Adrienne <ar********@sbc global.net> wrote:
The elements MENU and DIR were in the HTML 2.0 spec, and disappeared in
4.
They didn't. They are still allowed in HTML 4.01 Transitional (and
XHTML 1.0 Transitional).

They were never implemented properly. Browsers mostly treat MENU and DIR as
synonyms for UL.
I would like to have them back, they makes sense.
They won't come back. Whether they make sense in principle is debatable, but
the debate is futile. In fact, even the distinction between <ul> and <ol>
could be regarded as presentational.
<menu>
<li>Home</li>
<li>Contact</li>
</menu>

Perhaps speech enabled user agents could react accordingly, perhaps say
"Navigation ", which would differentiate it from an ordinary list,
Why? There are no links there. And if you make the content of each <li>
element a link, why can't a browser recognize this simple structure and deal
with it differently, if appropriate?

The XHTML 2.0 drafts contain <nl> for you, in the nice tradition of using
obscure element names and unnecessarily making markup-level differences
between different types of lists. (Using an _attribute_ to indicate the type
of a list might be reasonable.)
Search engines could probably benefit as well since they would know right
away where to start crawling.
No, they just look for links.
I know a lot of people use <div id="menu"><ul>. ..,
A lot of people use <div class="heading2 "> as well, or worse still
<p class="heading2 ">. There will always be a possibility to use wrong markup.
People can use <ul class="menu"> and then specify a compact, menu-like
presentation if they like.
[1] I would also like to be able to use the caption element inside a ul,
eg:
<ul>
<caption>Laundr y List</caption>
<li>Soap</li>
</ul>


An old and natural idea, but in fact you can use

<div class="lh">Laun dry List</div>
<ul class="with-lh">
<caption>Laundr y List</caption>
<li>Soap</li>
</ul>

with a suitable style sheet. (Classing the <ul> helps in making its top
margin small or zero so that the list visually connects to its list heading.)

Or maybe with <hN>Laundry List</hN> with a suitable integer in place of N.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #4
Gazing into my crystal ball I observed Lachlan Hunt
<sp***********@ gmail.com> writing in news:424602db$0 $7764$5a62ac22@ per-qv1-
newsreader-01.iinet.net.au :
Adrienne wrote:
<menu>
<li>Home</li>
<li>Contact</li>
</menu>


See <nl>...
<ul>
<caption>Laundr y List</caption> <li>Soap</li> </ul>


...and <label> in the current XHTML 2.0 draft.

http://www.w3.org/TR/xhtml2/mod-list.html#s_listmodule


Yes! I like it. Just what I was looking for.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 23 '05 #5
Tim
Adrienne <ar********@sbc global.net> wrote:
Search engines could probably benefit as well since they would know right
away where to start crawling.
"Jukka K. Korpela" <jk******@cs.tu t.fi> posted:
No, they just look for links.


The one advantage I could see could be search engines not using the page's
navigational array in the summary it provides about a website. It's just
as bad as the number of sites described as; this website requires Internet
Explorer, etc.
[1] I would also like to be able to use the caption element inside a ul,
eg:
<ul>
<caption>Laundr y List</caption>
<li>Soap</li>
</ul>


An old and natural idea, but in fact you can use

<div class="lh">Laun dry List</div>
<ul class="with-lh">
<caption>Laundr y List</caption>
<li>Soap</li>
</ul>

with a suitable style sheet. (Classing the <ul> helps in making its top
margin small or zero so that the list visually connects to its list heading.)


Which is essentially what they said, but with added classes. However,
don't the DTD preclude everything but LI elements being directly inside UL
and OL elements?

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 23 '05 #6
Tim <ti*@mail.local host.invalid> wrote:
The one advantage I could see could be search engines not using the
page's navigational array in the summary it provides about a website.
I guess that's what the W3C's working group thinks too. Indeed indexing
robots could skip <nl> elements in some contexts. But it's really an attempt
at an ad hoc solution. What if an author thinks that a table (a real, genuine
structure of tabulated data) is more suitable for use as a navigational
collection of links?

Besides, if HTML is being rewritten and made incompatible with existing HTML
user agents on purpose, why stick to the idea of making navigation lists part
of the content. Use <link>, Luke. Advanced browsers already support it.
Of course it could be made more structural, but then the most important thing
is to define the link types well (the rel="..." values).
It's just as bad as the number of sites described as; this website
requires Internet Explorer, etc.


You can avoid such nonsense either by not including a navigational collection
of links on every page or by making it the last element on the page,
optionally positioning it visually wherever you want.
<div class="lh">Laun dry List</div>
<ul class="with-lh">
<caption>Laundr y List</caption> <li>Soap</li> </ul>

with a suitable style sheet. (Classing the <ul> helps in making its top
margin small or zero so that the list visually connects to its list
heading.)


Which is essentially what they said, but with added classes. However,
don't the DTD preclude everything but LI elements being directly inside
UL and OL elements?


It does. Sorry for the I confusion I caused, when I failed to remove
the <caption> element from my suggestion. My point was that instead of the
currently hypothetical <caption>, you can make the list's caption an element
before the list. Perhaps as a heading, e.g.

<h2 class="lh">Laun dry List</h2>
<ul class="with-lh">
<li>Soap</li>
...
</ul>

Classes are a clumsy way, but they work - as opposite to XHTML 2.0, which has
been planned for years, still exists as an incomplete draft, and would become
useable on the Web only after defined _and_ implemented in browsers _and_
after sufficiently many people have upgraded their browsers (to something
that currently doesn't exist even on a designer's desk).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #7
Tim
Tim wrote:
It's just as bad as the number of sites described as; this website
requires Internet Explorer, etc.

"Jukka K. Korpela" <jk******@cs.tu t.fi> posted:
You can avoid such nonsense either by not including a navigational collection
of links on every page or by making it the last element on the page,
I do, I just wish other's would... ;-)
optionally positioning it visually wherever you want.


Unfortunately this doesn't quite work as well as we'd like. For instance,
I certainly can't think of a simple and robust way of writing a
navagational array at the end of the page, but displaying it at the top,
and not getting it messed up with the other content that's there.

Even using simple float right and lefts with sidebars can be a bit iffy,
too. Even worse with MSIE messing things up.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 24 '05 #8
in comp.infosystem s.www.authoring.html, Tim wrote:
Unfortunately this doesn't quite work as well as we'd like. For instance,
I certainly can't think of a simple and robust way of writing a
navagational array at the end of the page, but displaying it at the top,
and not getting it messed up with the other content that's there.


Menu at
http://www.student.oulu.fi/~laurirai/www/
Should work.

Complex (positioning the navigation menu to top *and* left)
http://www.student.oulu.fi/~laurirai/www/css/splitmenu/
(breaks when user overrides line-height. But without footer, works
nicely.)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 24 '05 #9

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

Similar topics

0
1504
by: Chris Bedford | last post by:
Hi... would be interested in the feedback of wsdl experts on this. I think there are two bugs in the w3c's wsdl/soap schemas. First, in section A 4.1 there is this element, with no closing tag: <element ref="soap:headerfault"> Secondly, the schema for WSDL defines binding operations from the
5
1632
by: Mike Conmackie | last post by:
Hello, I have a situation where I need to group an arbitrary number of like sibling input elements into a compound output element as follows: Input: <feature>
2
1864
by: Clarence | last post by:
Hi, here is an XML schema excerpt for an employees details. <xs:element name="ADDRESS"> <xs:complexType> <xs:sequence> <xs:element name="ADDRESSLINE" type="xs:string" maxOccurs="6"/> <xs:element name="HOUSENUMBER" type="xs:int" minOccurs="1"/> <xs:element name="POSTCODE" type="xs:string"/> </xs:sequence> </xs:complexType>
6
1654
by: Maury Merkin | last post by:
Question 1: Everyone here seems settled that the <div> tag is the place for an id attribute and <span> tags are for class attributes. Why? It seems to me that they are interchangeable. (Something about the aesthetics of the whole thing wants to do away with <div> tags altogether and simply use <span>. Is there some trap in doing this that I haven't found yet?) Question 2:
4
4163
by: Chris Beall | last post by:
If you want your code to be bulletproof, do you have to explicitly check for the existence of any possibly-undefined variable? Example: window.outerHeight is defined by some browsers, but not others. It would therefore seem prudent, before using this variable, to do something like: if (typeof (window.outerHeight) != "undefined") { do stuff that refers to this variable } else { work around the fact that the variable isn't defined }
4
1617
by: Gav | last post by:
Hi all, I'm having this strange problem where, in a web app, I have 2 different links to a different form. One is just a straight forward link the other is a bit more complicated because it gets there from a user control I wrote to display a menu. However both call the page in the same way using window.open('page.aspx','_top'); The problem is that:.... The page it calls, in the page load, checks to see if a session variable is null,...
0
3457
by: vcuser | last post by:
All, Can someone please let me know if you have come across this error in VC 7.1 when trying to implement an interface using the "Implement Interface wizard"? If so, can you please let me know what your resolution was? This is the complete error message. Error in OnFinish: Failed to return new Code Element. Possibly syntax error. New Element Name - (name of my object library including the complete path )
4
6829
by: jobs | last post by:
the javascript: function ShowTooltip(L1in) { document.getElementById("L1").innerText=L1in; y = event.clientY + document.documentElement.scrollTop; var Popup= document.getElementById("Popup") Popup.style.display="block"; Popup.style.position="absolute"; Popup.style.left = 220;
11
5130
Dormilich
by: Dormilich | last post by:
Lately I have seen so much awful HTML, that I like to show what a HTML document should look like, regarding the requirements from the W3C. the absolute minimum is defined as: or expressed in code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <TITLE>My first HTML document</TITLE>
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10413
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9021
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
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 we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.