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.

Essai import word avec CKEditor

Rédigé par Webmaster Aucun commentaire
Classé dans : PluXml Mots clés : aucun

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."

"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

  • Liste i
  • Liste2
  • Liste3

Test import word avec PlxEditor

Rédigé par Webmaster 1 commentaire
Classé dans : PluXml Mots clés : aucun

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."

"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

·         Liste i

·         Liste2

·         Liste3

Fil RSS des articles