NEW CSS #2 CSS Selectors: How to Target HTML Elements
Learn the CSS selectors - type, class, ID, universal, and combinators (descendant, child, next-sibling) - plus how the cascade and specificity decide which rule wins when two rules conflict.
HTML, CSS, and JavaScript guides and references for beginners. Learn web development with interactive code examples you can edit and run instantly in the SyncFiddle editor.
Learn the CSS selectors - type, class, ID, universal, and combinators (descendant, child, next-sibling) - plus how the cascade and specificity decide which rule wins when two rules conflict.
HTML gives your page structure - CSS gives it style. Learn how CSS rules work, how to attach styles to a page, and the core properties, units, and selectors you need to start designing your own layouts.
A detailed guide to block vs inline elements, div and span, whitespace handling, text semantics, and the HTML5 semantic elements that give your page meaningful structure.
How do browsers turn plain text into rich web pages? Learn what HTML is, how it works, and write your first page from scratch.