|
Sections: Introduction | Section 1 | Section 2 | Section 3 |
Section One: Part A | Part B | Part C | Part D | Part E | Part F | Part G |
CSS Basics Inline, Internal, and External Cascading Style SheetsCascading Style Sheets come in three different types:
Inline Styles Inline styles are styles that can be added directly to an HTML tag. The styles are very similar to attributes that expand the functionality of a tag. Inline styles are not very functional for the web author as they are not easy to write and they must be added individually to each tag that requires modification. Due to the limitations of inline styles, they will not be addressed here. Internal Style Sheets Internal style sheets can be added to an entire HTML page. The styles created in an internal style sheet can be accessed throughout the page the style sheet was added to. Internal style sheets are very powerful in that they allow you to quickly modify the text and images of an entire HTML page. External Style Sheets External style sheets are style sheets that are written in a separate file. An HTML file references the external style sheet and the styles specified in the style sheet are displayed in the web page. There is no HTML written in an external style sheet - only CSS styles are listed. External style sheets are the most powerful of the three types of Cascading Style Sheets in that any number of HTML documents can refer to and access the external CSS file, thus using the styles listed inside. |
© 2008 KCDL. All rights reserved. |