Click here to get back home

semantic structure of x/y

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
semantic structure of x/y ravidor 04-17-2008
Posted by ravidor on April 17, 2008, 7:21 pm
Please log in for more thread options
I need to display the number of a question out of total number of
questions (example 6/18). What HTML tags should I use to build it
semantically?

Posted by dorayme on April 17, 2008, 7:43 pm
Please log in for more thread options
In article

> I need to display the number of a question out of total number of
> questions (example 6/18). What HTML tags should I use to build it
> semantically?

A list or a table are the correct tools.

List - There is some unclarity about ordered lists, but you may as well
choose OL for this task if the actual order is important in some way.
Forego using the built in list-styles, set this to none and just put the
number at the start of each list item.

Table - A 2-col table with the number in the fist col, the question
corresponding in the nxt col but in same row and so on down.

--
dorayme

Posted by Jukka K. Korpela on April 18, 2008, 5:26 am
Please log in for more thread options
Scripsit ravidor:

> I need to display the number of a question out of total number of
> questions (example 6/18). What HTML tags should I use to build it
> semantically?

There is no markup in HTML for expressing such relationships. Anything
you might build with <span> and class would be just your private
convention, though perhaps useful for styling.

However, at the text level, I would suggest using an expression like "6
(of 18)" or something similar. The slash "/" is heavily overloaded with
multiple and often conflicting meanings in text. Specifically, 6/18 is
could be a date (June 18), or a fraction (= 1/3), for example.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Posted by dorayme on April 18, 2008, 5:44 am
Please log in for more thread options

> Scripsit ravidor:
>
> > I need to display the number of a question out of total number of
> > questions (example 6/18). What HTML tags should I use to build it
> > semantically?
>
> There is no markup in HTML for expressing such relationships.

This is in fact untrue in one sense. You can *really* express the
meaning of the numbers here (Op's was just an example) in a table.

If it is the actual number that OP is concentrating on, then my earlier
suggestions (which had the focus of the whole number and associated
questions (see OP's original post) needs to be modified. A table is the
*most semantic* way to proceed with three columns, the leftmost (in
normal English practice), being for the likes of the 6, the second
column, being for the 18 and the third for the associated question. the
column headings, explicit or implied would say it all.

--
dorayme

Similar ThreadsPosted
Semantic Structure of HTML page December 16, 2004, 6:58 am
Extracting Semantic Structure of HTML Doc January 25, 2005, 11:31 pm
Extracting semantic structure of HTML page December 23, 2004, 6:57 am
Extracting Semantic Structure of HTML Document- Feature based January 30, 2005, 7:43 pm
Need Help With Semantic Markup October 12, 2004, 5:47 am
Simplicity in HTML structure January 23, 2006, 4:48 pm
Structure of threaded discussion August 19, 2006, 1:19 pm
Question about structure of XHTML May 26, 2007, 11:23 pm
Re: How deep file structure August 13, 2008, 3:58 am
Re: How deep file structure August 13, 2008, 5:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap