| There has always been confusion whether to choose | | | | External CSS scripts |
| an inline or external CSS coding style. Consider the | | | | External CSS scripts offer an easy way to |
| following cases before jumping into any drawing any | | | | accomplish the task, without really hard-coding |
| conclusion or making the decision of choosing either | | | | anything. You must always try to make use of them, |
| of them. | | | | as long as you can help it! |
| Inline style is extremely difficult to be accommodated | | | | The Bottom-line |
| on a larger website. In case of smaller sites, updating | | | | The external CSS must be always preferred over |
| would take time depending on the size. | | | | the inline CSS scripting style, as it is easy to maintain, |
| An inline CSS code snippet would look like this: | | | | however the decision depends upon the utility of the |
| Inline style sheet. | | | | CSS script and the purpose. Only in those cases |
| There are also embedded style sheets and even | | | | wherein the type of script hardly makes any |
| linked style sheets. The linked style sheets should | | | | difference (meaning that there's no question of |
| have .css extension. | | | | maintenance in long term), you should resort to inline |
| The CSS file would look something like this - | | | | CSS coding style. |
| Inline CSS scripts must be avoided at all costs on the | | | | Even the CS3 web development and coding |
| larger projects, and must be used only when you're | | | | standards encourage usage of external CSS and |
| cent percent sure that you'll never need to change it | | | | strongly oppose usage of inline style in projects that |
| again -for instance hard coding a colour scheme. | | | | involve fair amount of coding. |