0

I have been trying to learn HTML/CSS for about a year now as a hobby and I have developed a good base knowledge and I figured before I got to far ahead of myself I would learn all of the proper rules, so I have begin to read HTML 4.01 Specification from the W3C website. I have add the fowling DTD to my HTML code and it causes my style to loose all back ground color. Is the problem in my HTML or could it be in my CSS. I have attached my .php. It works just fine with out the DTD in the first line. Thanx in advance

Lanier

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Attachments
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                      "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

	<title>The Kedrows</title>
	<link  href="Styles/CSStry.css" rel="stylesheet" type="text/css">
	<META http-equiv="Content-Style-Type" content="text/css">
</head>

<body>
	<div id="header">
		<h1> Welcome to the Kedrows </h1>
		<h2> Who are the Kedrows?</h2>
	</div>


	<div id="nav-menu">
	<ul><li> <a href="pages/the_fam.html">The Fam</a></li>
	<li><a href="PIX/mom.jpg">Robyn</a></li>
	<li><a href="PIX/themonkey.jpg">Adelle</a></li>	
	<li><a href="PIX/littledude.jpg">Jack</a></li>
	</ul>
	</div>

	<div id="footer">
		
		<div id="right">
			<h3 clear: both;>What is the purpose?</h3>
		</div>
		
		<center>
		<p id="info">
			This domain was created to give my family and I a permanent e-mail address that we could be assured would remain relatively spam free and for the most part everything 
			is going as planed.
		<br> 
		<br>
			The second reason for the domain is to teach myself web design. This has proven to be a slow process.
		<br> 
		<br>
			The big project at the moment is learning PHP/MySQL in order to create a robust cook book for my wife.  I am also still trying to nail down HTML and CSS.
		</p>

		<font size="5"> If your feeling froggy you can sign our <a href="http://www.thekedrows.com/gbook">guest book</a></p></font>
		</center>

	</div>

</body>
</html>
4
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by LanierWexford
0

switching to XML did the trick, plus another rung in the latter of learning. Thanx MM

Lanier

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.