Pages

Préparation au DS

 Indiquez les lignes selectionnées par le selecteur


🆘Exemple : 

  1.   <article>

  2.     <p title="Strophe1" id="st"></p>

  3.     <header>

  4.     <h1></h1>

  5.     <h2></h2> </header>

  6.     <p class="refrain"></p>

  7.     <p title="Strophe4" id="str"></p>

  8.     <p class="refrain" id="ref4"></p>

  9.     <footer> date (1880 - 1918) </footer></article>

sélecteur


p


article>h1





ligne(s)


2,6,7,8


rien


🪛A compléter

  1.   <article>

  2.     <p title="Strophe1" id="st"></p>

  3.     <header>

  4.     <h1></h1>

  5.     <h2></h2> </header>

  6.     <p class="refrain"></p>

  7.     <p title="Strophe4" id="str"></p>

  8.     <p class="refrain" id="ref4"></p>

  9.     <footer> date (1880 - 1918) </footer></article>

sélecteur

ligne(s)

p ~ p ~ p


p:nth-child(2)


article  :last-child:not(p)


[class $="n"]


article  :nth-of-type(-n+1)