CSS baby steps

I am not seeing my CSS applied to my test web page
Here is the html and here is the css
<!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">
<head>
<title>MY NAME</title>
<link href="./style.css" type="test/css" rel="stylesheet" />

</head>
        <body>

        <h1>My Name</h1>

        <ul>
        <li>  I like school</li>
        <li> I like the movie <a href="http://www.imdb.com/title/tt0057012/">Dr.Strangelove</a></li>
        <li> Here is me when I'm happy: <img src="./images/happy.jpg" alt="Happy" width="160" height="110" />  This is
when I'm 
sad: <img src="./images/sad.png" alt="sad" width="160" height="110" /></li>
        <li>I think that comic sans is the font of choice for all serious business</li>
        </ul>


        <a href="http://validator.w3.org/check/referer"><img src="../w3c-xhtml11.png" alt="Valid XHTML 1.1" /></a>
        <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="../w3c-css.png" alt="Valid CSS!" /></a>
        </body>
</html>

Open in new window

body {
	background-color: green;
	}
h1 {
	color: red;
	}

Open in new window

GPicassoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GregArnottCommented:
Change this line to:
<link href="style.css" type="test/css" rel="stylesheet" media="all">

Open in new window

The " />" closing this line is only required if you're using the XHTML DOCTYPE - and you've left DOCTYPE out which I believe defaults to HTML 4 transitional.
0
user_nCommented:
You may put your file in wrong folder. I think that style.css should be in current_folder/test/css folder.  Where current_folder is the folder holding the html file
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GPicassoAuthor Commented:
Close dude it was just under both our noses
test/css.. lol it should have been text/css
0
GregArnottCommented:
Lol. Copy/paste/presume!

Should have typed it out. Nice pick up
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.