L'utilisation quotidienne de la technologie XHTML/CSS nous confirme chaque jour que malgré tout le bien qu'on en pense, elle n'est pas encore la panacée. Un exemple parmi tant d'autres : comment matérialiser en XHTML le titre d'une liste ?

Le terme de "titre" nous fait instantanément penser aux balises du type <h1> <h2> <h3>. On serait ainsi tenté d'écrire :

<h1>Liste des ingrédients</h1> <ul> <li>Farine</li> <li>Oeuf</li> <li>Lait</li> </ul>

L'idée est bonne, mais hormis le fait que la liste succède le titre, rien n'indique que l'un dépende de l'autre. Il s'agit d'un titre, mais pas expressément le titre de cette liste.

Une autre idée nous est donnée dans le SimpleQuiz #3 : il s'agit de détourner l'utilisation de la liste de définitions (voir leur usage initial chez Pompage). Ainsi la liste serait considérée comme une définition du titre, un peu biscornu, non ?

Si on se retrouve dans une telle impasse sémantique, c'est que les spécifications ont ici une lacune. Personnellement, je vois deux possibilités :

  1. Rajouter un attribut "for" au <h1> (<h1 for="idDeMaListe">) qui permettrait un peu comme pour la balise <label> d'avoir une relation entre les deux éléments,
  2. Ou bien de rajouter une balise <caption> comme celle utilisée pour les tableaux.

Et vous, qu'en pensez-vous ?


Vos commentaires

Fabric Bonny -
Qu'il est temps de jeter un oeil au XHTML 2:


Fred Bird - site -
Quelle difference avec un paragraphe et son titre ?
Ma solution est de mettre les deux elements dans un même conteneur.

[ Adriens ] - site -
Salut :)

Personnellement je m'étais penché le problème pour la homme d'un client et j'étais parti sur des listes de définitions... Le problème de la liste de définition est qu'elle n'accepte pas les balises de titres ce qui peut par exemple interférer avec les robots des moteurs de recherche. - site -
Using the most up-to-date marketing techniques and proven strategies for success, ApricotLaw can help ensure that your law firm is coming out on top. You have cases to handle, - site -
Are you planning with what trends to wear this wedding season? If, yes this article will surely help you select the best trousseau items that you can add up to your list.

Escorts Service in Dehradun - site -
Excellent post! I must thank you for this informative read. I hope you will post again soon.

Escorts in Jaipur - site -
This website is to good for Knowledge. Thanks for share this post.

Escorts in Jaipur - site -
This website is to good for Knowledge. Thanks for share this post.

resumes - site -
Great post, you have pointed out some excellent points, I as well believe this is a very superb website.

imp source - site -
Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting.

look at more info - site -
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.

image source - site -
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.

Maxicab Daily Charter - site -
Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means?

teeth implant - site -
Thank you for some other informative website. The place else may just I get that kind of information written in such a perfect method?

Training - site -
You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog.

download pc games - site -
I found this is an informative and interesting post so i think so it is very useful and knowledgeable.

matka satta - site -
I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. - site -
This is a great inspiring article.I am pretty much pleased with your good work.

buy likes in instagram - site -
I am happy to find this post Very useful for me, as it contains lot of information. - site -
I can’t imagine focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material. This is great content.

Mexican word of the day - site -
I admire you're used of words, It’s just incredibly great.

garage doors comapny ft mill nc - site -
This is actually the kind of information I have been trying to find. Thank you for writing this information.

visit this website - site -
Houston Advanced Laser Skin Care Centers - The non-surgical approach to stretch mark treatment that you've been waiting for.

Safety Products - site -
However, the principle here is, if people do not believe in the destination, especially if they are in a leadership position, the sustainable journey will be an impossible one. Zero is attainable and will remain as our goal for 2011.

BGASC - site -
lovely post share. I like your all post. thanks for share that post....

cheapest condo in singapore - site -
View the latest health news and explore articles on fitness, diet, nutrition, parenting, relationships, medicine, diseases and healthy living at CNN Health.

bus simulator free download full version - site -
r new templates and extremely thanks for sharing these web developer tools relate

professional photography cameras - site -
This web site is exceptional offer of needs and quite valuable content substance

Virginia beach Car Locksmith - site -
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!

land use attorney sacramento - site -
Your special commitment to getting the message all through became really useful and has surely enabled some individuals just like me to get to their desired goals. Your own insightful instruction indicates a whole lot to me and much more to my colleagues.

Chicago Slip Resistant - site -
I am overwhelmed by your post with such a nice topic. Usually I visit your blogs and get updated through the information you include but today’s blog would be the most appreciable. Well done

veneers - site -
You have a very inspiring way of exploring and sharing your thoughts.

Burlington dentist - site -
Awesome Post ! It is an efficient post for readers.Thanks for share this type of post .

gold ira rollovers - site -
wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated - site -
I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job!

gold ira rollovers - site -
May you always be health by God so that you can update your post at any time

401k rollover to gold - site -
Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.

vvvvvvvvvvvvv - site -

Obat herbal miom - site -
Penyaki Miom Sembuh Menggunakan Obat herbal miom yang secara alami mampu mengatasi penyakit miom tanpa efek samping karna Obat Tradisional Alami amazon Plus Penyakit Miom diracik dari bahan yang 100 % alami tanpa ada kandungan bahan kimia di dalamnya.

Obat herbal jantung koroner - site -
Obat herbal jantung koroner adalah cara untuk Cara Pencegahan Terhadap Penyakit Jantung Koroner dengan Obat Alami Sakit Jantung Koroner amazon Plus Alami.

Obat herbal asam urat - site -
Asam urat adalah salah satu type sakit yang sering dijumpai dilingkungan masyarakat kita serta beberapa mereka yang kebanyakan sakit asam urat di dalam tubuh mereka. Jus Kulit Manggis Obat herbal asam urat cukup banyak diminati oleh para penderita penyakit asam urat. Karena amazon Plus Obat Tradisional Penyakit Asam Urat Alami mempunyai hasil yang aman bagi kesehatan dan tidak menimbulkan pengaruh negatif.

luna - site -

Ajouter votre commentaire