Sunday, November 20, 2011

CSS Basics Chapters 1-4

Chapters 1-4 on cssbasics.com covered topics such as the basics of CSS, CSS syntax, CSS classes, and CSS IDs. The first chapter discusses the difference between CSS and HTML along with the different methods of incorporating CSS into HTML code. While HTML is the content, CSS is the style. CSS allows you to separate website content from the style. There are different methods as to how you can include CSS into your HTML code: internally, externally, or embedded. Out of these three methods, embedded CSS is the most commonly used. In Chapter 2 CSS Syntax is discussed. Syntax consists of a selector, a property, and a value. It is important to note that each selector can have multiple properties, each property within a selector can have independent values. Also, properties and values are separated with a colon, values are separated by a comma, and properties are separated with a semi colon. Lastly, Chapters 3 and 4 discuss CSS classes and ID's. Class selectors allow you to style items within the same HTML element differently, while CSS ID's can be used to style the layout elements of a page that will only be needed once. Also, it is important to remember that once a specific ID has been declared, it cannot be used again within the same HTML file.

No comments:

Post a Comment