473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

standards compliant <ul> menu

Do you know of a menu that is indexable and standards compliant?

I found this:
http://www.htmldog.com/articles/suck...downs/example/

Thanks,
Jacob

Jul 23 '05 #1
1 1349
Jacob Friis Larsen wrote:
Do you know of a menu that is indexable and standards compliant?
Maybe. What are "indexable" and "standards compliant" supposed to mean
in this regard?
I found this:
http://www.htmldog.com/articles/suck...downs/example/


Approach (formatted unordered list with :hover pseudo-classes) is OK to
me, however realisation includes some Voodoo I'd certainly refrain from
(viable solution is indicated by `-->'):

- Serving XHTML 1.1 as text/html (forbidden)
--> Serve either HTML 4.01 Strict as text/html
or XHTML 1.x as application/xhtml+xml.
Can be combined for IE compatibility using Content Negotiation.
Can be maintained easier with server-side scripting.

- Serving XHTML without character processing instruction (unwise)
--> Include the instruction
or use Valid HTML 4.01 Strict served with charset in Content-Type
header and

<meta
http-equiv="Content-Type"
content="text/html; charset=...">

element as first child of the `head' element.

- Using the `style' element in XHTML without reference in
a stylesheet processing instruction (not supposed to work)
--> Include the instruction or serve HTML 4.01.

- Indenting elements -999em
--> Reasonable formatting of elements

- Using
<script type="text/javascript"><!--//--><![CDATA[//><!--
...
//--><!]]></script>

--> Use

<script type="text/javascript">
<![CDATA[
...
]]>
</script>

in Valid XHTML served as application/xhtml+xml
or include external script file
or use

<script type="text/javascript">
...
</script>

in Valid HTML 4.01.

- Not declaring variables
--> Use the `var' keyword.

- Using the `function' expression where a `function' statement suffices
--> Use the `function' statement instead.

- Testing for and usage of window.attachEvent()
--> Use the `onload' event handler attribute value to call function.
HTH

PointedEars
Jul 23 '05 #2

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

Similar topics

8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
5
by: toylet | last post by:
Attached is some css codes for a website. It has 3 parts: top-bar, side-bar (on the left) and main-body. The top-bar has a mouseover menu called top-menu implemented via ul:hover. When the mouse...
6
by: Sally Thompson | last post by:
My normal navigation menu is a <ul> and works fine. However, on one particular page I want to have a sub-menu when you go to that page, and I have been trying to achieve this with a nested <ul>. ...
16
by: michael | last post by:
Is it possible to get all href URLs contained in a unordered list and place them in an array? Or in fact two different arrays, differently named one for each <ul> group? <ul> <li><a...
4
by: abs | last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li> element ? In other words I have several lists like this: <ul id="1"> <li>Aaaaaaaa</li> <li>Bbbbbbbb</li>...
4
by: Viken Karaguesian | last post by:
Hello all, I'm have an annoyance I can't seem to solve. I'm working on a website that has a sidebar floating to the right. In the sidebar is an unordered list. In IE and in Opera, the list shows...
5
by: Syl | last post by:
Hello experts!! The top menu navigation bar displays perfectly in IE, but does not display properly in Mozilla or Netscape : http://checkeredshirt.com/textonly.html For some reason the non-IE...
4
by: Winston | last post by:
Where is the mistake? I want to make a simple menu. These are two pieces of two files... function ShowMenu(objeto) { is_open = document.getElementById(objeto).style.display;...
6
by: capricious | last post by:
Is it possible, so that when you do multiple <UL>'s to control how deep the UL's are marked? For example, it would defaultly look like this with multiple ULs and LIs: -- Code : Main...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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
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
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,...

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.