Introduction to Style Sheets
Style Sheets: Inline
Styles can also be added inline. This is done by inserting Style Sheets rules directly into the HTML code like this:
|
<html lang="en"><head>
<h1 style="color:#55bb55; font-size:22px; font-style:italic; font-family:arial">Style Sheets</h1> </body></html> |
Again you have:
Style SheetsCustomizing your web pages! |
For small style changes, no Style Sheet code is needed at the top of the page. We instead use an inline STYLE. However, the code must be added everywhere it is to be applied. This can be useful for selected changes.
Combine more than one method at a time to get that perfect look and then try some of these tricks and shortcuts for more power.
[Updated: Sunday, November 18, 2007]
