alternates-brainstorming: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
()
()
Line 52: Line 52:
=== Discussion ===
=== Discussion ===


== Strawman 4 ==
== Strawman 4 (lists) ==
 
An example of a list that expresses no preference.


<pre><nowiki>
<pre><nowiki>
Line 62: Line 64:
</nowiki></pre>
</nowiki></pre>


An ordered list could use its list elements to imply an order of precedence where an unordered list would imply a series of peered alternates (as shown here).  
An example of a list that expresses a preference (i.e. first is best, last is worst)
 
<pre><nowiki>
<on class="altgroup">
<li><a href="example.mp3" type="audio/mpeg">MP3 alternative</a></li>
<li><a href="example.wav" type="audio/wav">WAV alternative</a></li>
<li><a href="example.mov" type="video/quicktime">MOV alternative</a></li>
</on>
</nowiki></pre>


=== Discussion ===
=== Discussion ===
* this rocks, though I'm a little indifferent to ''altgroup''. The only downside is that 'loosely coupled' alternates may not be covered; on the other hand, this may not be so much of an issue. We will know more from the examples -- [[User:DavidJanes|David Janes]]


= See Also =
= See Also =

Revision as of 00:21, 18 November 2005

Introduction

This page is to talk about alternates, that is, places where a user may be given several different items to choose amongst that at some logical level are considered equivalent.

Discussion Participants

Editor

Authors

Interested Folks

Brainstorms

Strawman 1

<fieldset>
 <a href="example.mp3" type="audio/mpeg">MP3 alternative</a>
 <a href="example.wav" type="audio/wav">WAV alternative</a>
 <a href="example.mov" type="video/quicktime">MOV alternative</a>
</fieldset> 

XHTML Sample

Discussion

Strawman 2

   <select id="entryN">
     <option value="example.mp3">MP3 alternative</option>
     <option value="example.mov">WAV alternative</option>
     <option value="example.wav">MOV alternative</option>
   </select> 

XHTML Sample

Discussion

Strawman 3

<div class="altgroup">
 <a class="alternate" href="example.mp3" type="audio/mpeg">MP3 alternative</a>
 <a class="alternate" href="example.wav" type="audio/wav">WAV alternative</a>
 <a class="alternate" href="example.mov" type="video/quicktime">MOV alternative</a>
</div> 

Discussion

Strawman 4 (lists)

An example of a list that expresses no preference.

<ul class="altgroup">
 <li><a href="example.mp3" type="audio/mpeg">MP3 alternative</a></li>
 <li><a href="example.wav" type="audio/wav">WAV alternative</a></li>
 <li><a href="example.mov" type="video/quicktime">MOV alternative</a></li>
</ul> 

An example of a list that expresses a preference (i.e. first is best, last is worst)

<on class="altgroup">
 <li><a href="example.mp3" type="audio/mpeg">MP3 alternative</a></li>
 <li><a href="example.wav" type="audio/wav">WAV alternative</a></li>
 <li><a href="example.mov" type="video/quicktime">MOV alternative</a></li>
</on> 

Discussion

  • this rocks, though I'm a little indifferent to altgroup. The only downside is that 'loosely coupled' alternates may not be covered; on the other hand, this may not be so much of an issue. We will know more from the examples -- David Janes

See Also