Learn XHTML and CSS in the following pages!

ROOT HOME
DESIGN HOME

XHTML Tutorial
XHTML Syntax
XHTML DTD
XHTML HowTo

CSS Tutorial
CSS Syntax
External CSS
Internal CSS
Inline CSS

Tools
Color Chart
Web Tools

Validation
Validate your site
Check our XHTML
Check our CSS

To use Internal CSS you need to add <style> tags inside the <head> tags

For this example, we will make the webpage have red text with a black background
<style type='text/css'>
body {
background-color: black;
color: red;
}
</style>

Now let us put the <style> tag into the same webpage we did for the example on the XHTML HowTo page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>The title of your page here</title>
<style type='text/css'>
body {
background-color: black;
color: red;
}
</style>

</head>
<body>
The content of the webpage goes here
</body>
</html>


Updated: February 22 2007 04:19:48 PM. EST (GMT -5)
All content, unless otherwise stated, Copyright © 2005 - 2010 Eric Schultheiss. All Rights Reserved.