A Beginner's Guide to Cascading Style Sheets (CSS)

Cascading Style Sheets are a powerful way to control the presentation of web pages.

CSS2.1 uses two basic types of elements: block-level and inline-level.

Block-level elements

Block-level elements generate an element box that (by default) fills its parent element's content area and cannot have other elements at its sides. In other words, it generates breaks before and after the element box. For example p and div.

Inline-level elements

Inline-level elements generate an element box within a line of text and do not break up the flow of that line. For example strong and em.


CSS allows for comments, they are surrounded by /* and */.


Previous page: How to launch a new website for free
Next page: Amazon