January 2018
Intermediate to advanced
678 pages
20h 16m
English
Now let’s look at a complete web page where we put into practice what’s been covered so far in regard to CSS rules. Study the source code in FIGURE 3.1’s Tree Poem web page. Notice the three CSS rules inside the style container. The first two rules should look familiar because they were presented in the previous section. The third rule uses a type selector with a slightly different syntax than before—there’s a comma between two element types, h2 and p. If you want to apply the same formatting feature(s) to more than one type of element, you can implement that with one rule, where the element types appear at the left, as part of a comma-separated list.
FIGURE 3.1 Source code for ...
Read now
Unlock full access