Skip to main content

CSS Selectors

  • Chapter
  • First Online:
Pro HTML5 with CSS, JavaScript, and Multimedia
  • 7436 Accesses

Abstract

A style sheet is a set of styling rules, and each rule consists of a selector and one or more declarations. A selector determines what elements the rule should apply to; the declaration specifies a style attribute that is being set. In this chapter I will demonstrate the capabilities that are available when constructing the selectors. The remaining chapters in this section will explain all the wonderful things you can do with CSS once you've selected the appropriate elements.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Mark J. Collins

About this chapter

Cite this chapter

Collins, M.J. (2017). CSS Selectors. In: Pro HTML5 with CSS, JavaScript, and Multimedia. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2463-2_9

Download citation

Publish with us

Policies and ethics