6. Box Properties
In the physical world, atoms are the building blocks for all larger objects. Every type of atom, or element, has its own unique properties, but when bonded with other atoms, they create molecules—larger structures with properties different from the parts.
Likewise, HTML tags are the building blocks of your Web page. Each tag, or element, has its own unique capabilities. Tags can be combined to create a Web page that is greater than the sum of its parts.
Whether a tag is by itself or nested deep within other tags, it can be treated as a discrete element on the screen and controlled by CSS.
Web designers use the concept of the box as a metaphor to describe the various things that you can do to an HTML element in a window, whether ...
Get CSS, DHTML, and Ajax: Visual QuickStart Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.