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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4842-2463-2_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2462-5
Online ISBN: 978-1-4842-2463-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books