• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

4.1. Grouping

Grouping is a basic CSS concept designed to make things simpler for Web authors by allowing them to combine several CSS rules in a single statement. This can be very handy, and can considerably shorten the length of your CSS code as you customize exactly how you want different HTML tags to appear on a Web page. Grouping allows you to add the same basic formatting rules to common groups of formatting elements, such as headers or paragraphs.

Quite often, Web authors may only want to add a single CSS rule to a given HTML tag, as in the following code snippet:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint