Simple CSS/XHTML

Suspended
Joined
30 Jan 2005
Posts
467
Hey guys, Im just trying some xhtml/css for the first time. Heres my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title goes here</title>

<style type="text/css">

h1
{
color: red;
font-style: underline;
font-size: 8pt;
text-decoration: underline;
}

h2
{
color: pink;
font-size: 20pt;
text-decoration: underline;
}

</style>

</head>


<body>
<p><h1>Body text goes here</h1></p>
<p><h2>Body text goes here</h2></p>

<img src="http://www.w3schools.com/banners/altova_stylevision.gif" id="picture1" name="picture1" alt="picture1" />

</body>

</html>

When I try to validate I get 2 errors:

11za.jpg


Also, I have a favour to ask of someone, If its not too time consuming, could someone make the following image into xhtml/css. (I work best from studying code) And In return i can offer web hosting or a domain name. I would offer money but I dont think im allowed and anyways, my crappy internet wont let me in my paypal, but thats a different story.

22nx.jpg


Many thanks for any help :)
 
Last edited:
Back
Top Bottom