HTML and CSS Reference
In-Depth Information
Complex selectors combine one or more compound selectors together using a com-
binator. Because they are composed of compound selectors, they will always use at least
a type selector on each side of the combinator. Although both sides of the combinator
will include a type selector, the rest of the compound selector can contain any kind of
selector chained on to the end. It can even contain mixes of combinators and selectors.
For example, imagine a website that allowed guest writers to author content on the site.
A section might be created and given a class that designated it as containing guest con-
tent:
<body>
<header>
<h1>Page header</h1>
 
Search WWH ::




Custom Search