for both content and presentation. Now HTML can focus on well-formed content, while CSS lets us present that content in any number of ways. If you see HTML presentational elements like <font> or <center> (or <table> used for layout), run for the hills!
{ color: red; } </style> <link rel="stylesheet" href="example.css" type="text/css"> HTML CSS Inline styles Embedded style block External style sheet HTML CSS HTML (the CSS is in this le) <body> </body> <head> </head> <head> </head>
} </style> <link rel="stylesheet" href="example.css" type="text/css"> Inline styles Embedded style block External style sheet It’s best to avoid inline styles, but it can be quick and easy for styling one-off things. However, if you’re writing the same inline style in more than one place, you're probably doing it wrong. <p style=“color: red;”>
href="example.css" type="text/css"> Inline styles Embedded style block External style sheet Very useful for overriding external styles on a single page. <style> p { color: red; } </style>
{ color: red; } </style> Inline styles Embedded style block External style sheet Best when applying the same styles across multiple web pages. External stylesheets are cached by the browser (faster loading) and you can change your styles in one le instead of all les that link to it. <link rel="stylesheet" href="example.css" type="text/css">
you http://www.w3schools.com http://www.csszengarden.com http://www.codecademy.com/tracks/web http://joshuarudd.github.com/typeset.css http://js ddle.net Your browser’s Web Inspector (or Firebug)