Understanding CSS
A single style cannot perform the miracle of transforming a web page into a work of art. To create some special designs in the web page, an understanding of web page is very essential. Usually a collection of CSS styles comprises a style sheet.
A style sheet can be of two types - external and internal, depending on where the style information is located- in the Web page itself or in a separate file linked to the web page.
Internal and External - How to choose
Most of the time external style sheets are preferred as they make it quite easier to build web pages and update web sites faster. They contain all style information in single file. You will have to attach the external style sheet with just a line of code to an HTML page and completely alter the appearance of the page. The external style sheets also assist in fast opening of web pages. When you are using an external style sheet, your web pages will contain only basic HTML - no byte-hogging HTML tables or
Moreover, when a web browser downloads an external style sheet, it usually stores the file on the visitor's computer [in a behind-the-scenes folder called a cache] for quick access. When your visitor hops to other web pages on the site that use the same external style sheet, so there is no need for the browser to download the style sheet again. The browser can simply pull the external style sheet from its cache - a significant savings in download time. Note: When you are working on your web site and previewing it in a web browser, the cache can work against you. Internal Style sheets An internal style sheet is a collection of styles that forms a part of the web page’s code, always placed between opening and closing HTML
