As with JavaScript, the browser interprets CSS as HTML unless you tell it otherwise. Style tags do for CSS what the script tags do for JavaScript. They tell the browser to treat everything between them as CSS, not HTML: <html> <head> <title>Page Title</title> <style type="text/css"> /* The CSS code goes here. */ </style> </head> <body> <!-- The content of the page goes here. --> </body> </html> Also as with JavaScript, place embedded style sheets in the head section of the code.
|