No, if you want to have the CSS inside your HTML document (bad idea), then the proper way would be to do it like this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>My site title</title>
<style type="text/css">
/** == Add your CSS here == **/
</style>
</head>
<body>
<!-- Add your HTML markup here -->
</body>
</html>
The inline CSS needs to be inside the <head> element whereas the HTML markup needs to be enclosed inside <body> element.
Bookmarks