Le nouvel élément HTML 5: main

Rédigé par Webmaster 8 commentaires
Classé dans : Edito, Créer son thème Mots clés : aucun

Ce nouvel élément a pour mission de devenir la cible privilégiée du lien  « Aller au contenu principal ».

Son utilisation: il va remplacer la <div role=’main’> que nous utilisions jusqu'ici.!

Pour lui appliquer des styles CSS, il suffit de lui faire subir le même sort que les autres balises HTML5 article, aside, figcaption, figure, footer, header, nav et section : main { display: block }.

Cette balise est déjà disponible dans le script html5shiv.js  ou dans la dernière version de Rocssti base css de Nicolas Hoffmann, inspirée de Knacss !

Parmi les restrictions, on notera que l’élément main :

  • Est prévu pour être seul (pas deux main dans un document),
  • Ne doit pas être utilisé à l’intérieur des éléments article, aside, footer, header ou nav,
  • Se porte mieux avec l’attribut ARIA correspondant  <main role="main"></main>,
  • N’est pas prévu, d’une manière générale, pour servir de contenu principal d’une sous-section.

8 commentaires

#1  - nonton movie online a dit :

Thanks for some other informative site. The place else may
just I get that type of info written in such an ideal method?

I've a challenge that I'm just now working on, and I have been on the look out for such info.

#2  - Capsa Susun a dit :

Amazing! Ιts genuinely awesome post, I have ɡot
much cⅼear idea аbout fгom tһis piece ߋf

#3  - Cathy a dit :

A fascinating discussion is worth comment. I do believe that you
ought to write more on this subject, it may not be a taboo matter but typically people
do not talk about these issues. To the next! Kind regards!!

#4  - trusted ball agent a dit :

When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get several emails with the same comment.
Is there any way you can remove me from that service?
Bless you!

#5  - what is middling a sports bet a dit :

Simply want to say your article is as surprising.
The clarity in your put up is just nice and that i can suppose you are an expert on this subject.
Fine along with your permission allow me to grab your feed
to stay up to date with approaching post. Thanks one million and
please continue the rewarding work.

#6  - Edgardo a dit :

certainly like your website but you need to check the spelling on several of your posts.
Many of them are rife with spelling issues and I
find it very troublesome to inform the reality then again I'll definitely come back again.

#7  - Bet online a dit :

Howdy! This is kind of off topic but I need some advice from an established blog.

Is it difficult to set up your own blog? I'm not very techincal but I can figure things out pretty fast.

I'm thinking about setting up my own but I'm not sure where to begin. Do
you have any tips or suggestions? Thanks

#8  - link Alternatif Botakqq a dit :

Hello just wanted to give you a quick heads up and let you know a few of the
pictures aren't loading correctly. I'm not sure why but I think its a linking issue.
I've tried it in two different web browsers and both show the same results.

Les commentaires sont fermés.

Fil RSS des commentaires de cet article