Tutorial by Examples

Use the link attribute in the document's head: <head> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> You can also use stylesheets provided from websites via a content delivery network, or CDN for short. (for example, Bo...
You can also include CSS elements internally by using the <style> tag: <head> <style type="text/css"> body { background-color: gray; } </style> </head> Multiple internal stylesheets can be included in a program as...
You can style a specific element by using the style attribute: <span style="color: red">This text will appear in red.</span> Note: Try to avoid this -- the point of CSS is to separate content from presentation.
It's possible to load multiple stylesheets: <head> <link rel="stylesheet" type="text/css" href="general.css"> <link rel="stylesheet" type="text/css" href="specific.css"> </head> Note that later files a...

Page 1 of 1