CSS Diner | css selector online
Noworries,youvegotthis!YoureabouttolearnCSSSelectors!Selectorsarehowyoupickwhichelementtoapplystylesto.Exhibit1-ACSSRulep{margin-bottom:12px;}Here,the"p"istheselector(selectsall
elements)andappliesthemargin-bottomstyle.Toplay,typeinaCSSselectorintheeditorbelowtoselectthecorrectitemsonthetable.Ifyougetitright,youlladvancetothenextlevel.HoverovertheitemsonthetabletoseetheirHTMLmarkup.Gethelpwithselectorsontheright!→Ok,gotit![1]ReferencesOk,gotit!(flukeout.github.io)
No worries, youve got this!Youre about to learn CSS Selectors! Selectors are how you pick which element to apply styles to.
Exhibit 1 - A CSS Rule p { margin-bottom: 12px; }Here, the "p" is the selector (selects all <p> elements) and applies the margin-bottom style.
To play, type in a CSS selector in the editor below to select the correct items on the table.If you get it right, youll advance to the next level.
Hover over the items on the table to see their HTML markup.
Get help with selectors on the right! →
Ok, got it![1] References Ok, got it! (flukeout.github.io)